1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 09:59:04 +00:00

Add __attribute__((noreturn)) to netutil_fatal.

This commit is contained in:
david
2011-06-07 04:59:26 +00:00
parent a89479112b
commit 04e2cc9936
2 changed files with 1 additions and 3 deletions

View File

@@ -157,9 +157,6 @@ int netutil_fatal(const char *str, ...){
va_end(list);
exit(EXIT_FAILURE);
return 0;
} /* End of fatal() */
/** Print error messages to stderr and then return. A newline

View File

@@ -115,6 +115,7 @@ enum { OP_FAILURE = -1, OP_SUCCESS = 0 };
#endif
int netutil_fatal(const char *str, ...)
__attribute__ ((noreturn))
__attribute__ ((format (printf, 1, 2)));
int netutil_error(const char *str, ...)