Skip to content

Commit

Permalink
lib/idcache: add void to function declaration [smatch scan]
Browse files Browse the repository at this point in the history
lib/idcache.c:29:29: warning: non-ANSI function declaration of function
'new_idcache'

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
  • Loading branch information
kerolasa authored and karelzak committed Feb 20, 2017
1 parent 2ba641e commit a2c8c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/idcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct identry *get_id(struct idcache *ic, unsigned long int id)
return NULL;
}

struct idcache *new_idcache()
struct idcache *new_idcache(void)
{
return calloc(1, sizeof(struct idcache));
}
Expand Down

0 comments on commit a2c8c53

Please sign in to comment.