X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=errlog.c;h=05a2c82e2bf189790c0e13f026f60af7d2222fca;hp=559069daec28c4f6a1cc848de661c77231b4a987;hb=44e17dd7246c755ee40949ae4dee6f334c3dd7e3;hpb=1e3471c05f279e9f4ebead3a943512d8919a70f3 diff --git a/errlog.c b/errlog.c index 559069da..05a2c82e 100644 --- a/errlog.c +++ b/errlog.c @@ -1,4 +1,3 @@ -const char errlog_rcs[] = "$Id: errlog.c,v 1.129 2017/05/29 10:06:57 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/errlog.c,v $ @@ -7,7 +6,7 @@ const char errlog_rcs[] = "$Id: errlog.c,v 1.129 2017/05/29 10:06:57 fabiankeil * printf-like fashion. * * Copyright : Written by and Copyright (C) 2001-2014 the - * Privoxy team. http://www.privoxy.org/ + * Privoxy team. https://www.privoxy.org/ * * Based on the Internet Junkbuster originally written * by and Copyright (C) 1997 Anonymous Coders and @@ -79,9 +78,6 @@ const char errlog_rcs[] = "$Id: errlog.c,v 1.129 2017/05/29 10:06:57 fabiankeil #include "jbsockets.h" #endif -const char errlog_h_rcs[] = ERRLOG_H_VERSION; - - /* * LOG_LEVEL_FATAL cannot be turned off. (There are * some exceptional situations where we need to get a @@ -605,7 +601,7 @@ static inline const char *get_log_level_string(int loglevel) case LOG_LEVEL_FATAL: log_level_string = "Fatal error"; break; - case LOG_LEVEL_GPC: + case LOG_LEVEL_REQUEST: log_level_string = "Request"; break; case LOG_LEVEL_CONNECT: @@ -688,7 +684,7 @@ void log_error(int loglevel, const char *fmt, ...) * the taskbar icon animate. (There is an option to disable * this but checking that is handled inside LogShowActivity()). */ - if ((loglevel == LOG_LEVEL_GPC) || (loglevel == LOG_LEVEL_CRUNCH)) + if ((loglevel == LOG_LEVEL_REQUEST) || (loglevel == LOG_LEVEL_CRUNCH)) { LogShowActivity(); } @@ -803,7 +799,7 @@ void log_error(int loglevel, const char *fmt, ...) break; case 'c': /* - * Note that char paramaters are converted to int, so we need to + * Note that char parameters are converted to int, so we need to * pass "int" to va_arg. (See K&R, 2nd ed, section A7.3.2, page 202) */ tempbuf[0] = (char) va_arg(ap, int); @@ -968,17 +964,13 @@ void log_error(int loglevel, const char *fmt, ...) * * Description : Translates JB_ERR_FOO codes into strings. * - * XXX: the type of error codes is jb_err - * but the typedef'inition is currently not - * visible to all files that include errlog.h. - * * Parameters : * 1 : jb_error = a valid jb_err code * * Returns : A string with the jb_err translation * *********************************************************************/ -const char *jb_err_to_string(int jb_error) +const char *jb_err_to_string(jb_err jb_error) { switch (jb_error) {