[PATCH 5/7] lib/idcache: add void to function declaration [smatch scan]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



lib/idcache.c:29:29: warning: non-ANSI function declaration of function
'new_idcache'

Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 lib/idcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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));
 }
-- 
2.11.1

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux