diff --git a/src/common/node_select.c b/src/common/node_select.c index fab4f2a730869e67ad13b816265ec51ecd43eaac..13e2f8d769d73b0171a5fcdd25e72fb5f948fd49 100644 --- a/src/common/node_select.c +++ b/src/common/node_select.c @@ -739,7 +739,7 @@ extern int select_g_select_nodeinfo_get(dynamic_plugin_data_t *nodeinfo, (nodedata, dinfo, state, data); } -extern dynamic_plugin_data_t *select_g_select_jobinfo_alloc() +extern dynamic_plugin_data_t *select_g_select_jobinfo_alloc(void) { dynamic_plugin_data_t *jobinfo_ptr = NULL; uint32_t plugin_id; diff --git a/src/common/node_select.h b/src/common/node_select.h index b04fd5a9d9f6bce76359d9cea1e4aa12d5a9ae3f..85dc355626606af083fc831f5f2ac2e2a1bdc77a 100644 --- a/src/common/node_select.h +++ b/src/common/node_select.h @@ -106,7 +106,7 @@ typedef struct slurm_select_ops { select_nodedata_type dinfo, enum node_states state, void *data); - select_jobinfo_t *(*jobinfo_alloc) (); + select_jobinfo_t *(*jobinfo_alloc) (void); int (*jobinfo_free) (select_jobinfo_t *jobinfo); int (*jobinfo_set) (select_jobinfo_t *jobinfo, enum diff --git a/src/plugins/select/bgq/select_bgq.cc b/src/plugins/select/bgq/select_bgq.cc index be3bdbc3a9c8f6a653e968fb9ea40a7d457337e4..bab9704ae414edf37e7d2cc7849819aecb7fdfb8 100644 --- a/src/plugins/select/bgq/select_bgq.cc +++ b/src/plugins/select/bgq/select_bgq.cc @@ -306,7 +306,7 @@ extern int select_p_select_nodeinfo_get(select_nodeinfo_t *nodeinfo, return SLURM_SUCCESS; } -select_jobinfo_t *select_p_select_jobinfo_alloc() +select_jobinfo_t *select_p_select_jobinfo_alloc(void) { return SLURM_SUCCESS; } diff --git a/src/plugins/select/bluegene/plugin/select_bluegene.c b/src/plugins/select/bluegene/plugin/select_bluegene.c index 26cb2f9a44811995dddaa4d793bd2fad84934d28..db5afbbfedbaa5f68bb6c4ad3b932419fe0ff462 100644 --- a/src/plugins/select/bluegene/plugin/select_bluegene.c +++ b/src/plugins/select/bluegene/plugin/select_bluegene.c @@ -693,7 +693,7 @@ extern int select_p_select_nodeinfo_get(select_nodeinfo_t *nodeinfo, return select_nodeinfo_get(nodeinfo, dinfo, state, data); } -select_jobinfo_t *select_p_select_jobinfo_alloc() +select_jobinfo_t *select_p_select_jobinfo_alloc(void) { return alloc_select_jobinfo(); } diff --git a/src/plugins/select/cons_res/select_cons_res.c b/src/plugins/select/cons_res/select_cons_res.c index ef847f48a16f563ca8bdd833ca2bb3e486eb5b36..b906ee9f0bfbbee7232a418d6461e94fccd75d3b 100644 --- a/src/plugins/select/cons_res/select_cons_res.c +++ b/src/plugins/select/cons_res/select_cons_res.c @@ -2077,7 +2077,7 @@ extern int select_p_select_nodeinfo_get(select_nodeinfo_t *nodeinfo, return rc; } -extern int select_p_select_jobinfo_alloc (select_jobinfo_t *jobinfo) +extern int select_p_select_jobinfo_alloc(void) { return SLURM_SUCCESS; } diff --git a/src/plugins/select/cray/other_select.c b/src/plugins/select/cray/other_select.c index fb1d0c921caf0f4cd05fcc3b1d3e35ea9c6364f9..33f79feb90dd69980e44cdbc5f9b07b8e8e351f0 100644 --- a/src/plugins/select/cray/other_select.c +++ b/src/plugins/select/cray/other_select.c @@ -510,7 +510,7 @@ extern int other_select_nodeinfo_get(select_nodeinfo_t *nodeinfo, (nodeinfo, dinfo, state, data); } -extern select_jobinfo_t *other_select_jobinfo_alloc() +extern select_jobinfo_t *other_select_jobinfo_alloc(void) { if (other_select_init() < 0) return NULL; diff --git a/src/plugins/select/cray/select_cray.c b/src/plugins/select/cray/select_cray.c index f46141e824bc8b94804251552db58cbf1ef01e9c..946c75732032a3c59527b40ee3858565ab4e2891 100644 --- a/src/plugins/select/cray/select_cray.c +++ b/src/plugins/select/cray/select_cray.c @@ -367,7 +367,7 @@ extern int select_p_select_nodeinfo_get(select_nodeinfo_t *nodeinfo, return rc; } -extern select_jobinfo_t *select_p_select_jobinfo_alloc() +extern select_jobinfo_t *select_p_select_jobinfo_alloc(void) { select_jobinfo_t *jobinfo = xmalloc(sizeof(struct select_jobinfo)); jobinfo->magic = JOBINFO_MAGIC; diff --git a/src/plugins/select/linear/select_linear.c b/src/plugins/select/linear/select_linear.c index aeeed3e87ae48badf62941a34421889ef13fae14..8b12c3af8132c840d6451dfdba1146385d546665 100644 --- a/src/plugins/select/linear/select_linear.c +++ b/src/plugins/select/linear/select_linear.c @@ -2743,7 +2743,7 @@ extern int select_p_select_nodeinfo_get(select_nodeinfo_t *nodeinfo, return rc; } -extern select_jobinfo_t *select_p_select_jobinfo_alloc() +extern select_jobinfo_t *select_p_select_jobinfo_alloc(void) { return SLURM_SUCCESS; }