[Devel] [PATCH 07/10] In C func() is to be func(void) generally

Igor Podlesny openvz at poige.ru
Mon May 6 23:42:09 PDT 2013


---
 include/util.h |    4 ++--
 src/lib/util.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/util.h b/include/util.h
index 045dcb3..ff23804 100644
--- a/include/util.h
+++ b/include/util.h
@@ -48,11 +48,11 @@ int get_addr_family(const char *addr);
 int get_netaddr(const char *ip_str, void *ip);
 char *canon_ip(const char *str);
 char *subst_VEID(envid_t veid, char *src);
-int get_pagesize();
+int get_pagesize(void);
 int get_mem(unsigned long long *mem);
 int get_thrmax(int *thrmax);
 int get_swap(unsigned long long *swap);
-int get_num_cpu();
+int get_num_cpu(void);
 int get_lowmem(unsigned long long *mem);
 unsigned long max_ul(unsigned long val1, unsigned long val2);
 int get_dump_file(unsigned veid, const char *dumpdir, char *buf, int size);
diff --git a/src/lib/util.c b/src/lib/util.c
index 9d8912e..2345d1f 100644
--- a/src/lib/util.c
+++ b/src/lib/util.c
@@ -470,7 +470,7 @@ char *subst_VEID(envid_t veid, char *src)
 	return strdup(str);
 }
 
-int get_pagesize()
+int get_pagesize(void)
 {
 	long pagesize = sysconf(_SC_PAGESIZE);
 
@@ -536,7 +536,7 @@ int get_swap(unsigned long long *swap)
 	return -1;
 }
 
-int get_num_cpu()
+int get_num_cpu(void)
 {
 	FILE *fd;
 	char str[128];
-- 
1.7.9.5




More information about the Devel mailing list