mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Add __attribute__((noreturn)) to netutil_fatal.
This commit is contained in:
parent
a89479112b
commit
04e2cc9936
2 changed files with 1 additions and 3 deletions
|
|
@ -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, ...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue