mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
fixed err() implementation, exit(eval) according to spec
This commit is contained in:
@@ -32,6 +32,12 @@ void err(int eval, const char *fmt, ...) {
|
||||
}
|
||||
fprintf(stderr, ": %s\n", strerror(errno));
|
||||
va_end(ap);
|
||||
|
||||
/* from the FreeBSD err() manpage:
|
||||
The err(), verr(), errc(), verrc(), errx(), and verrx() functions do not
|
||||
return, but exit with the value of the argument eval.
|
||||
*/
|
||||
exit(eval);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user