use malloc. change indentation.

This commit is contained in:
Enno Rehling 2011-02-27 11:24:51 -08:00
parent 37326e4f34
commit 09f2286b82
1 changed files with 5 additions and 5 deletions

View File

@ -55,11 +55,11 @@ get_functionname(pf_generic fun)
void
register_function(pf_generic fun, const char * name)
{
function_list * fl = calloc(sizeof(function_list), 1);
fl->next = functionlist;
fl->fun = fun;
fl->name = strdup(name);
functionlist = fl;
function_list * fl = (function_list *)malloc(sizeof(function_list));
fl->next = functionlist;
fl->fun = fun;
fl->name = strdup(name);
functionlist = fl;
}
void