forked from github/server
use malloc. change indentation.
This commit is contained in:
parent
37326e4f34
commit
09f2286b82
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue