]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/idcache: add void to function declaration [smatch scan]
authorSami Kerola <kerolasa@iki.fi>
Sun, 12 Feb 2017 08:25:03 +0000 (08:25 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Feb 2017 12:00:58 +0000 (13:00 +0100)
lib/idcache.c:29:29: warning: non-ANSI function declaration of function
'new_idcache'

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
lib/idcache.c

index 3c358b8a893f4400c17004959db8b1f01e9da4c0..a1a957b9313069c7664ef2bd614249c1ae24ce50 100644 (file)
@@ -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));
 }