use malloc. change indentation.

This commit is contained in:
Enno Rehling 2011-02-27 11:24:51 -08:00
parent 37326e4f34
commit 09f2286b82

View file

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