summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src')
-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);