Use a header file constant for xmloutputversion.

This commit is contained in:
david 2012-05-05 18:02:37 +00:00
parent 0c8d6c9af1
commit 56b7063aa9
2 changed files with 3 additions and 1 deletions

View file

@ -1638,7 +1638,7 @@ int nmap_main(int argc, char *argv[]) {
xml_attribute("start", "%lu", (unsigned long) timep);
xml_attribute("startstr", "%s", mytime);
xml_attribute("version", "%s", NMAP_VERSION);
xml_attribute("xmloutputversion", "1.04");
xml_attribute("xmloutputversion", NMAP_XMLOUTPUTVERSION);
xml_close_start_tag();
xml_newline();

2
nmap.h
View file

@ -239,6 +239,8 @@ void *realloc();
earlier) than NMAP_VERSION. */
#define NMAP_UPDATE_CHANNEL "5.61TEST4"
#define NMAP_XMLOUTPUTVERSION "1.04"
/* User configurable #defines: */
#define MAX_PROBE_PORTS 10 /* How many TCP probe ports are allowed ? */
/* Default number of ports in parallel. Doesn't always involve actual