Nmap Development mailing list archives

[PATCH] Remove unused mmap-related defines (for win32) in utils.h


From: Kris Katterjohn <kjak () ispwest com>
Date: Thu, 14 Sep 2006 17:05:22 -0500

The attached patch removes mmap-related #defines (PROT_* and MAP_SHARED)
under the #ifdef WIN32 in utils.h. The PROT_* and MAP_SHARED are only
used in mmapfile() under the #ifndef WIN32.

It's a diff against 4.20ALPHA7

Thanks,
Kris Katterjohn
--- x/utils.h   2006-08-30 02:38:43.000000000 -0500
+++ y/utils.h   2006-09-14 16:58:41.000000000 -0500
@@ -273,12 +273,6 @@ int numberlist2array(char *expr, u16 *de
 char *mmapfile(char *fname, int *length, int openflags);
 
 #ifdef WIN32
-#define PROT_READ       0x1             /* page can be read */
-#define PROT_WRITE      0x2             /* page can be written */
-#define PROT_EXEC       0x4             /* page can be executed */
-#define PROT_NONE       0x0             /* page can not be accessed */
-
-#define MAP_SHARED      0x01            /* Share changes */
 
 int win32_munmap(char *filestr, int filelen);
 

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: