From: Fabian Keil Date: Mon, 26 May 2008 16:13:22 +0000 (+0000) Subject: Reuse directive_hash and don't hash the same directive twice. X-Git-Tag: v_3_0_9~63 X-Git-Url: http://www.privoxy.org/gitweb/@user-manual@@actions-help-prefix@BLOCK?a=commitdiff_plain;h=ce921028f16077b9a2ad87021ec8cb47dce71a72;p=privoxy.git Reuse directive_hash and don't hash the same directive twice. --- diff --git a/loadcfg.c b/loadcfg.c index 6348f0f3..904110ac 100644 --- a/loadcfg.c +++ b/loadcfg.c @@ -1,4 +1,4 @@ -const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.75 2008/03/30 14:52:05 fabiankeil Exp $"; +const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.76 2008/05/10 09:03:16 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/loadcfg.c,v $ @@ -35,6 +35,10 @@ const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.75 2008/03/30 14:52:05 fabiankeil * * Revisions : * $Log: loadcfg.c,v $ + * Revision 1.76 2008/05/10 09:03:16 fabiankeil + * - Merge three string_append() calls. + * - Remove useless assertion. + * * Revision 1.75 2008/03/30 14:52:05 fabiankeil * Rename load_actions_file() and load_re_filterfile() * as they load multiple files "now". @@ -1650,7 +1654,7 @@ struct configuration_spec * load_config(void) * to LOG_LEVEL_FATAL. */ log_error(LOG_LEVEL_ERROR, "Ignoring unrecognized directive '%s' (%luul) in line %lu " - "in configuration file (%s).", buf, hash_string(cmd), linenum, configfile); + "in configuration file (%s).", buf, directive_hash, linenum, configfile); string_append(&config->proxy_args, " Warning: ignored unrecognized directive above.
"); continue;