mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Exit with nonzero status on error
This commit is contained in:
@ -208,19 +208,19 @@ void error(const char *s)
|
||||
{
|
||||
perror(s);
|
||||
assert(0);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
void malloc_error()
|
||||
{
|
||||
fprintf(stderr, "Malloc error\n");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
void file_error(char *s)
|
||||
{
|
||||
fprintf(stderr, "Couldn't open file: %s\n", s);
|
||||
exit(0);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
list *split_str(char *s, char delim)
|
||||
|
Reference in New Issue
Block a user