From ce921028f16077b9a2ad87021ec8cb47dce71a72 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 26 May 2008 16:13:22 +0000 Subject: [PATCH] Reuse directive_hash and don't hash the same directive twice. --- loadcfg.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; -- 2.39.2