summaryrefslogtreecommitdiffstats
path: root/lib/idcache.c
diff options
context:
space:
mode:
authorSami Kerola2017-02-12 09:25:03 +0100
committerKarel Zak2017-02-20 13:00:58 +0100
commita2c8c533ce3bbc6a803e8f9e81cb22e7f52db8ef (patch)
tree4aa1f18a1ca748e8f414b3cda9972fecc3ded4ed /lib/idcache.c
parentmisc: add static keyword to where needed [smatch scan] (diff)
downloadkernel-qcow2-util-linux-a2c8c533ce3bbc6a803e8f9e81cb22e7f52db8ef.tar.gz
kernel-qcow2-util-linux-a2c8c533ce3bbc6a803e8f9e81cb22e7f52db8ef.tar.xz
kernel-qcow2-util-linux-a2c8c533ce3bbc6a803e8f9e81cb22e7f52db8ef.zip
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 <kerolasa@iki.fi>
Diffstat (limited to 'lib/idcache.c')
-rw-r--r--lib/idcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/idcache.c b/lib/idcache.c
index 3c358b8a8..a1a957b93 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));
}