X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fanalysisd%2Flists.c;h=9d907dc19d4795c23f9b1cabc3438959cd4a452e;hp=4c0b2c4d34653658e21f6ec9c0d1c0834f54275d;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/analysisd/lists.c b/src/analysisd/lists.c index 4c0b2c4..9d907dc 100644 --- a/src/analysisd/lists.c +++ b/src/analysisd/lists.c @@ -1,4 +1,5 @@ -/* @(#) $Id$ */ +/* @(#) $Id: ./src/analysisd/lists.c, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. @@ -8,7 +9,7 @@ * License (version 3) as published by the FSF - Free Software * Foundation. * - * License details at the LICENSE file included with OSSEC or + * License details at the LICENSE file included with OSSEC or * online at: http://www.ossec.net/en/licensing.html */ @@ -25,7 +26,7 @@ void Lists_OP_CreateLists() { OS_CreateListsList(); - return; + return; } int Lists_OP_LoadList(char * listfile) @@ -33,13 +34,13 @@ int Lists_OP_LoadList(char * listfile) /* XXX Jeremy: I hate this. I think I'm missing something dumb here */ char *holder; char a_filename[OS_MAXSTR]; - a_filename[OS_MAXSTR - 2] = '\0'; char b_filename[OS_MAXSTR]; + ListNode *tmp_listnode_pt = NULL; + + a_filename[OS_MAXSTR - 2] = '\0'; b_filename[OS_MAXSTR - 2] = '\0'; - ListNode *tmp_listnode_pt = NULL; tmp_listnode_pt = (ListNode *)calloc(1,sizeof(ListNode)); - debug1("crated new listnode for %s\n", listfile); if (tmp_listnode_pt == NULL) ErrorExit(MEM_ERROR,ARGV0); snprintf(a_filename, OS_MAXSTR-1, "%s", listfile);