From: Sami Kerola Date: Sun, 12 Feb 2017 08:25:03 +0000 (+0000) Subject: lib/idcache: add void to function declaration [smatch scan] X-Git-Tag: v2.30-rc1~226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2c8c533ce3bbc6a803e8f9e81cb22e7f52db8ef;p=thirdparty%2Futil-linux.git lib/idcache: add void to function declaration [smatch scan] lib/idcache.c:29:29: warning: non-ANSI function declaration of function 'new_idcache' Signed-off-by: Sami Kerola --- diff --git a/lib/idcache.c b/lib/idcache.c index 3c358b8a89..a1a957b931 100644 --- a/lib/idcache.c +++ b/lib/idcache.c @@ -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)); }