X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Frssclient%2Frss_atom_parser.c;fp=citadel%2Fmodules%2Frssclient%2Frss_atom_parser.c;h=c33fe9e707643c3f8ff9b9c78c278097db74b9da;hp=0c7290b5cc0857ce856d43a2ce614ca2eedb11aa;hb=eee9a1429dd032114946aad9e70fd8d84afbe918;hpb=c064b240ff457c4bcdc119aaf7a6a09ff31952e2 diff --git a/citadel/modules/rssclient/rss_atom_parser.c b/citadel/modules/rssclient/rss_atom_parser.c index 0c7290b5c..c33fe9e70 100644 --- a/citadel/modules/rssclient/rss_atom_parser.c +++ b/citadel/modules/rssclient/rss_atom_parser.c @@ -1086,9 +1086,9 @@ void rss_parser_cleanup(void) DeleteHash(&KnownNameSpaces); } -void LogDebugEnableRSSATOMParser(void) +void LogDebugEnableRSSATOMParser(const int n) { - RSSAtomParserDebugEnabled = 1; + RSSAtomParserDebugEnabled = n; } CTDL_MODULE_INIT(rssparser) @@ -1177,7 +1177,7 @@ CTDL_MODULE_INIT(rssparser) /* we don't like these namespaces because of they shadow our usefull parameters. */ Put(KnownNameSpaces, HKEY("http://search.yahoo.com/mrss/"), NULL, reference_free_handler); #endif - CtdlRegisterDebugFlagHook(HKEY("RSSAtomParser"), LogDebugEnableRSSATOMParser); + CtdlRegisterDebugFlagHook(HKEY("RSSAtomParser"), LogDebugEnableRSSATOMParser, &RSSAtomParserDebugEnabled); CtdlRegisterCleanupHook(rss_parser_cleanup); } return "rssparser";