From: Fabian Keil Date: Thu, 10 Sep 2009 14:42:01 +0000 (+0000) Subject: Don't constify argv in the main() and real_main() prototypes. X-Git-Tag: v_3_0_15~71 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=3c371f1faa10155a901a25ed635a663e7dbd19ef Don't constify argv in the main() and real_main() prototypes. Could silence a mingw32 compiler warning. --- diff --git a/jcc.c b/jcc.c index 649a73b5..fcc238d3 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.286 2009/09/06 17:11:45 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.287 2009/09/09 17:12:08 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -2783,9 +2783,9 @@ static void initialize_mutexes(void) * *********************************************************************/ #ifdef __MINGW32__ -int real_main(int argc, const char *argv[]) +int real_main(int argc, char **argv) #else -int main(int argc, const char *argv[]) +int main(int argc, char **argv) #endif { int argc_pos = 0; diff --git a/jcc.h b/jcc.h index b9b5a54f..46b1f301 100644 --- a/jcc.h +++ b/jcc.h @@ -1,6 +1,6 @@ #ifndef JCC_H_INCLUDED #define JCC_H_INCLUDED -#define JCC_H_VERSION "$Id: jcc.h,v 1.25 2008/10/09 18:21:41 fabiankeil Exp $" +#define JCC_H_VERSION "$Id: jcc.h,v 1.26 2009/05/16 13:27:20 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.h,v $ @@ -104,9 +104,9 @@ extern privoxy_mutex_t rand_mutex; /* Functions */ #ifdef __MINGW32__ -int real_main(int argc, const char *argv[]); +int real_main(int argc, char **argv); #else -int main(int argc, const char *argv[]); +int main(int argc, char **argv); #endif /* Revision control strings from this header and associated .c file */