summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhou Zhengping <johnzzpcrystal@gmail.com>2016-07-11 07:28:44 -0400
committerVijay Bellur <vbellur@redhat.com>2016-07-12 11:13:51 -0700
commit4768760d5eb0ee8a0251e7776ed03d130c747164 (patch)
treebf45cd5ac9da86918f5247c38fc9a984e824b111
parent19adaad015a8e13206f656eaee135881a2da58eb (diff)
build: fix noisy compilation warning with current build option Wstrict-prototypes
Change-Id: I50904033aa2beb880dee828849f470ac31048a79 BUG: 1354221 Signed-off-by: Zhou Zhengping <johnzzpcrystal@gmail.com> Reviewed-on: http://review.gluster.org/14884 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r--libglusterfs/src/common-utils.h6
-rw-r--r--libglusterfs/src/dict.h4
-rw-r--r--libglusterfs/src/fd-lk.h2
-rw-r--r--libglusterfs/src/globals.h14
-rw-r--r--libglusterfs/src/glusterfs.h2
-rw-r--r--libglusterfs/src/iobuf.h2
6 files changed, 15 insertions, 15 deletions
diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h
index 8d88935ca09..e2b3f3ea032 100644
--- a/libglusterfs/src/common-utils.h
+++ b/libglusterfs/src/common-utils.h
@@ -210,7 +210,7 @@ struct list_node *list_node_add_order (void *ptr, struct list_head *list,
void list_node_del (struct list_node *node);
struct dnscache *gf_dnscache_init (time_t ttl);
-struct dnscache_entry *gf_dnscache_entry_init ();
+struct dnscache_entry *gf_dnscache_entry_init (void);
void gf_dnscache_entry_deinit (struct dnscache_entry *entry);
char *gf_rev_dns_lookup_cached (const char *ip, struct dnscache *dnscache);
@@ -757,11 +757,11 @@ int validate_brick_name (char *brick);
char *get_host_name (char *word, char **host);
char *get_path_name (char *word, char **path);
void gf_path_strip_trailing_slashes (char *path);
-uint64_t get_mem_size ();
+uint64_t get_mem_size (void);
int gf_strip_whitespace (char *str, int len);
int gf_canonicalize_path (char *path);
char *generate_glusterfs_ctx_id (void);
-char *gf_get_reserved_ports();
+char *gf_get_reserved_ports(void);
int gf_process_reserved_ports (gf_boolean_t ports[], uint32_t ceiling);
gf_boolean_t
gf_ports_reserved (char *blocked_port, gf_boolean_t *ports, uint32_t ceiling);
diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h
index c5b82677e2e..afe83d68fc3 100644
--- a/libglusterfs/src/dict.h
+++ b/libglusterfs/src/dict.h
@@ -154,10 +154,10 @@ char *data_to_str (data_t *data);
void *data_to_bin (data_t *data);
void *data_to_ptr (data_t *data);
-data_t *get_new_data ();
+data_t *get_new_data (void);
data_t * data_copy (data_t *old);
dict_t *get_new_dict_full (int size_hint);
-dict_t *get_new_dict ();
+dict_t *get_new_dict (void);
int dict_foreach (dict_t *this,
int (*fn)(dict_t *this,
diff --git a/libglusterfs/src/fd-lk.h b/libglusterfs/src/fd-lk.h
index 1d2ff794c5b..51f62991681 100644
--- a/libglusterfs/src/fd-lk.h
+++ b/libglusterfs/src/fd-lk.h
@@ -55,7 +55,7 @@ fd_lk_ctx_t *
fd_lk_ctx_try_ref (fd_lk_ctx_t *lk_ctx);
fd_lk_ctx_t *
-fd_lk_ctx_create ();
+fd_lk_ctx_create (void);
int
fd_lk_insert_and_merge (struct _fd *lk_ctx, int32_t cmd,
diff --git a/libglusterfs/src/globals.h b/libglusterfs/src/globals.h
index 25bd8dd2737..e6cb593c238 100644
--- a/libglusterfs/src/globals.h
+++ b/libglusterfs/src/globals.h
@@ -80,24 +80,24 @@
#define THIS (*__glusterfs_this_location())
#define DECLARE_OLD_THIS xlator_t *old_THIS = THIS
-xlator_t **__glusterfs_this_location ();
-xlator_t *glusterfs_this_get ();
+xlator_t **__glusterfs_this_location (void);
+xlator_t *glusterfs_this_get (void);
int glusterfs_this_set (xlator_t *);
/* syncopctx */
-void *syncopctx_getctx ();
+void *syncopctx_getctx (void);
int syncopctx_setctx (void *ctx);
/* task */
-void *synctask_get ();
+void *synctask_get (void);
int synctask_set (void *);
/* uuid_buf */
-char *glusterfs_uuid_buf_get ();
+char *glusterfs_uuid_buf_get (void);
/* lkowner_buf */
-char *glusterfs_lkowner_buf_get ();
+char *glusterfs_lkowner_buf_get (void);
/* leaseid buf */
-char *glusterfs_leaseid_buf_get ();
+char *glusterfs_leaseid_buf_get (void);
/* init */
int glusterfs_globals_init (glusterfs_ctx_t *ctx);
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h
index 3f7bb5ea2e4..8d387bafb3b 100644
--- a/libglusterfs/src/glusterfs.h
+++ b/libglusterfs/src/glusterfs.h
@@ -555,7 +555,7 @@ int glusterfs_graph_destroy (glusterfs_graph_t *graph);
int glusterfs_get_leaf_count (glusterfs_graph_t *graph);
int glusterfs_graph_activate (glusterfs_graph_t *graph, glusterfs_ctx_t *ctx);
glusterfs_graph_t *glusterfs_graph_construct (FILE *fp);
-glusterfs_graph_t *glusterfs_graph_new ();
+glusterfs_graph_t *glusterfs_graph_new (void);
int glusterfs_graph_reconfigure (glusterfs_graph_t *oldgraph,
glusterfs_graph_t *newgraph);
diff --git a/libglusterfs/src/iobuf.h b/libglusterfs/src/iobuf.h
index 1578ceb84dd..9a256257ff5 100644
--- a/libglusterfs/src/iobuf.h
+++ b/libglusterfs/src/iobuf.h
@@ -156,7 +156,7 @@ struct iobref {
int used;
};
-struct iobref *iobref_new ();
+struct iobref *iobref_new (void);
struct iobref *iobref_ref (struct iobref *iobref);
void iobref_unref (struct iobref *iobref);
int iobref_add (struct iobref *iobref, struct iobuf *iobuf);