mirror of
https://github.com/nmap/nmap.git
synced 2025-12-31 11:59:03 +00:00
Removed dead code
This commit is contained in:
@@ -58,6 +58,10 @@
|
||||
|
||||
#include "error.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
void fatal(char *fmt, ...) {
|
||||
va_list ap;
|
||||
|
||||
@@ -84,15 +88,3 @@ void pfatal(char *fmt, ...) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
void gh_perror(char *err, ...) {
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, err);
|
||||
fflush(stdout);
|
||||
vfprintf(stderr, err, ap);
|
||||
va_end(ap);
|
||||
|
||||
perror(" ");
|
||||
fflush(stderr);
|
||||
}
|
||||
|
||||
|
||||
@@ -59,22 +59,6 @@
|
||||
#ifndef ERROR_H
|
||||
#define ERROR_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "nsock_config.h"
|
||||
#include "nbase_config.h"
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#include "nbase_winconfig.h"
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#if HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
void fatal(char *fmt, ...)
|
||||
__attribute__ ((noreturn))
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
@@ -83,7 +67,4 @@ void pfatal(char *fmt, ...)
|
||||
__attribute__ ((noreturn))
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
void gh_perror(char *err, ...);
|
||||
|
||||
#endif /* ERROR_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user