mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Make netutil_fatal return void.
This commit is contained in:
parent
04e2cc9936
commit
b08c07339a
2 changed files with 2 additions and 2 deletions
|
|
@ -142,7 +142,7 @@
|
|||
/** Print fatal error messages to stderr and then exits. A newline
|
||||
character is printed automatically after the supplied text.
|
||||
* @warning This function does not return because it calls exit() */
|
||||
int netutil_fatal(const char *str, ...){
|
||||
void netutil_fatal(const char *str, ...){
|
||||
va_list list;
|
||||
char errstr[NBASE_MAX_ERR_STR_LEN];
|
||||
memset(errstr,0, NBASE_MAX_ERR_STR_LEN);
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ enum { OP_FAILURE = -1, OP_SUCCESS = 0 };
|
|||
#define IPPROTO_SCTP 132
|
||||
#endif
|
||||
|
||||
int netutil_fatal(const char *str, ...)
|
||||
void netutil_fatal(const char *str, ...)
|
||||
__attribute__ ((noreturn))
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue