From: jongfoster Date: Fri, 30 Nov 2001 21:29:33 +0000 (+0000) Subject: Fixing a warning X-Git-Tag: v_2_9_10~12 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=7f01b47aa2ce772d73dbae4287c6e4c4d1cf39a1 Fixing a warning --- diff --git a/win32.c b/win32.c index 43284fc0..fc08d610 100644 --- a/win32.c +++ b/win32.c @@ -1,4 +1,4 @@ -const char win32_rcs[] = "$Id: win32.c,v 1.2 2001/07/29 19:32:00 jongfoster Exp $"; +const char win32_rcs[] = "$Id: win32.c,v 1.3 2001/11/16 00:46:31 jongfoster Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/win32.c,v $ @@ -31,6 +31,9 @@ const char win32_rcs[] = "$Id: win32.c,v 1.2 2001/07/29 19:32:00 jongfoster Exp * * Revisions : * $Log: win32.c,v $ + * Revision 1.3 2001/11/16 00:46:31 jongfoster + * Fixing compiler warnings + * * Revision 1.2 2001/07/29 19:32:00 jongfoster * Renaming _main() [mingw32 only] to real_main(), for ANSI compliance. * @@ -138,7 +141,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine } /* Allocate array of strings */ - argv = (char **)malloc(sizeof(char *) * argc); + argv = (const char **)malloc(sizeof(const char *) * argc); /* step through command line replacing spaces with zeros, initialise array */ argv[0] = szModule; @@ -176,7 +179,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine #endif /* Cleanup */ - free(argv); + free((void *)argv); free(pszArgs); return res;