Skip to content
Snippets Groups Projects
Commit 2b2d5e33 authored by Danny Auble's avatar Danny Auble
Browse files

Move function to be in the static functions (and defined that way). No real

code change.

Bug 3885
parent 4d851688
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,7 @@ static struct node_record *
_find_node_record (char *name,bool test_alias,bool log_missing);
static void _list_delete_config (void *config_entry);
static int _list_find_config (void *config_entry, void *key);
static const char* _node_record_hash_identity (void* item);
/*
* _build_single_nodeline_info - From the slurm.conf reader, build table,
......@@ -400,6 +401,16 @@ static int _list_find_config (void *config_entry, void *key)
return 0;
}
/*
* xhash helper function to index node_record per name field
* in node_hash_table
*/
static const char* _node_record_hash_identity (void* item)
{
struct node_record *node_ptr = (struct node_record *) item;
return node_ptr->name;
}
/*
* bitmap2hostlist - given a bitmap, build a hostlist
* IN bitmap - bitmap pointer
......@@ -800,15 +811,6 @@ static struct node_record *_find_node_record (char *name, bool test_alias,
return NULL;
}
/*
* xhash helper function to index node_record per name field
* in node_hash_table
*/
const char* node_record_hash_identity (void* item) {
struct node_record *node_ptr = (struct node_record *) item;
return node_ptr->name;
}
/*
* init_node_conf - initialize the node configuration tables and values.
* this should be called before creating any node or configuration
......@@ -988,7 +990,7 @@ extern void rehash_node (void)
struct node_record *node_ptr = node_record_table_ptr;
xhash_free (node_hash_table);
node_hash_table = xhash_init(node_record_hash_identity,
node_hash_table = xhash_init(_node_record_hash_identity,
NULL, NULL, 0);
for (i = 0; i < node_record_count; i++, node_ptr++) {
if ((node_ptr->name == NULL) ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment