From: oes Date: Mon, 10 Sep 2001 11:27:24 +0000 (+0000) Subject: Declaration of w32_socket_strerr now conditional X-Git-Tag: v_2_9_9~136 X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@toggle?a=commitdiff_plain;h=cb62d9e2052d3ef52c0110ce188efbf8abbb705e;p=privoxy.git Declaration of w32_socket_strerr now conditional --- diff --git a/errlog.c b/errlog.c index bf4ed2f0..7f289e8c 100644 --- a/errlog.c +++ b/errlog.c @@ -1,4 +1,4 @@ -const char errlog_rcs[] = "$Id: errlog.c,v 1.16 2001/07/30 22:08:36 jongfoster Exp $"; +const char errlog_rcs[] = "$Id: errlog.c,v 1.17 2001/09/10 10:17:13 oes Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/errlog.c,v $ @@ -33,6 +33,9 @@ const char errlog_rcs[] = "$Id: errlog.c,v 1.16 2001/07/30 22:08:36 jongfoster E * * Revisions : * $Log: errlog.c,v $ + * Revision 1.17 2001/09/10 10:17:13 oes + * Removed unused variable; Fixed sprintf format + * * Revision 1.16 2001/07/30 22:08:36 jongfoster * Tidying up #defines: * - All feature #defines are now of the form FEATURE_xxx @@ -178,8 +181,9 @@ static int debug = (LOG_LEVEL_FATAL | LOG_LEVEL_ERROR | LOG_LEVEL_INFO); /* static functions */ static void fatal_error(const char * error_message); -static char * w32_socket_strerr(int errcode, char * tmp_buf); - +#ifdef _WIN32 +static char *w32_socket_strerr(int errcode, char *tmp_buf); +#endif /********************************************************************* * @@ -653,7 +657,7 @@ void log_error(int loglevel, char *fmt, ...) * tmp_buf. * *********************************************************************/ -static char * w32_socket_strerr(int errcode, char * tmp_buf) +static char *w32_socket_strerr(int errcode, char *tmp_buf) { #define TEXT_FOR_ERROR(code,text) \ if (errcode == code) \