Skip to content

Commit fd4669a

Browse files
committed
Refactor: fencer: Rename init_device_list to fenced_init_device_table
Proper prefix for a non-static symbol, and more importantly says "table" now. "List" was misleading. Signed-off-by: Reid Wahl <[email protected]>
1 parent bcfe5d5 commit fd4669a

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

daemons/fenced/fenced_commands.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,12 @@ free_device(gpointer data)
792792
free(device);
793793
}
794794

795+
/*!
796+
* \internal
797+
* \brief Initialize the table of known fence devices
798+
*/
795799
void
796-
init_device_list(void)
800+
fenced_init_device_table(void)
797801
{
798802
if (device_table == NULL) {
799803
device_table = pcmk__strkey_table(NULL, free_device);

daemons/fenced/pacemaker-fenced.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ main(int argc, char **argv)
634634
setup_cib();
635635
}
636636

637-
init_device_list();
637+
fenced_init_device_table();
638638
init_topology_list();
639639

640640
pcmk__serve_fenced_ipc(&ipcs, &ipc_callbacks);

daemons/fenced/pacemaker-fenced.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ typedef struct stonith_topology_s {
215215

216216
void stonith_shutdown(int nsig);
217217

218-
void init_device_list(void);
218+
void fenced_init_device_table(void);
219219
void fenced_free_device_table(void);
220220
bool fenced_has_watchdog_device(void);
221221
void fenced_foreach_device(GHFunc fn, gpointer user_data);

0 commit comments

Comments
 (0)