From Peter Johansson:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 26 Jul 2005 09:34:49 +0000 (09:34 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 26 Jul 2005 09:34:49 +0000 (09:34 +0000)
The supplied patch takes care of the following compilation warnings:

editcap.c(273) : warning C4013: 'getpid' undefined; assuming extern
returning int
editcap.c(464) : warning C4018: '<' : signed/unsigned mismatch

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15084 f5534014-38df-0310-8fa8-9805f1628bb7

editcap.c

index 7f49d18d982e694e4123293e011eb6229332192a..922cd84f1a328527111d7842ca4a46ddecf3b094 100644 (file)
--- a/editcap.c
+++ b/editcap.c
 #include "getopt.h"
 #endif
 
+#ifdef _WIN32
+#include <process.h>    /* getpid */
+#endif
+
 /*
  * Some globals so we can pass things to various routines
  */
@@ -461,7 +465,7 @@ int main(int argc, char *argv[])
               }
 
               if (err_type < ERR_WT_FMT) {
-                if (i < phdr->caplen - 2)
+                if ((unsigned int)i < phdr->caplen - 2)
                   strcpy(&buf[i],  "%s");
                 err_type = ERR_WT_TOTAL;
               } else {