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:
@@ -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
|
||||
|
||||
@@ -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, ...)
|
||||
|
||||
Reference in New Issue
Block a user