-/* @(#) $Id$ */
+/* @(#) $Id: ./src/analysisd/lists.c, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
* 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
*/
void Lists_OP_CreateLists()
{
OS_CreateListsList();
- return;
+ return;
}
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);