From Peter Johansson:

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


svn path=/trunk/; revision=15084
This commit is contained in:
Anders Broman 2005-07-26 09:34:49 +00:00
parent 5e241d8a7c
commit d410c9ed54
1 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,10 @@
#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 {