mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
header file cleanup
see http://seclists.org/nmap-dev/2013/q4/168 Move some includes out of nmap.h: nmap.h gets included lots of places, and unconditionally included math.h, ctype.h, errno.h, stdio.h, sys/stat.h, fcntl.h, sys/types.h, and stdarg.h. This commit moves those includes into the .cc files where they are necessary and out of nmap.h Remove redundant include global_structures.h, included from nmap.h Removed redundant code included from nmap.h Removing #include nbase.h when nmap.h is included (redundant) Remove duplicate #include lines Add ifndef guards to a few .h files
This commit is contained in:
@@ -123,6 +123,8 @@
|
||||
|
||||
/* $Id: nmap.h 6676 2008-01-12 22:39:34Z fyodor $ */
|
||||
|
||||
#ifndef NMAP_TRACEROUTE_H
|
||||
#define NMAP_TRACEROUTE_H
|
||||
#include "Target.h"
|
||||
|
||||
#include <vector>
|
||||
@@ -130,3 +132,4 @@
|
||||
int traceroute(std::vector<Target *> &Targets);
|
||||
|
||||
void traceroute_hop_cache_clear();
|
||||
#endif /* NMAP_TRACEROUTE_H */
|
||||
|
||||
Reference in New Issue
Block a user