Make the barconfig list a TAILQ
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
char *current_configpath = NULL;
|
||||
Config config;
|
||||
struct modes_head modes;
|
||||
struct barconfig_head barconfigs;
|
||||
struct barconfig_head barconfigs = TAILQ_HEAD_INITIALIZER(barconfigs);
|
||||
|
||||
/**
|
||||
* Ungrabs all keys, to be called before re-grabbing the keys because of a
|
||||
|
@ -487,7 +487,7 @@ IPC_HANDLER(get_bar_config) {
|
||||
strncpy(bar_id, (const char*)message, message_size);
|
||||
LOG("IPC: looking for config for bar ID \"%s\"\n", bar_id);
|
||||
Barconfig *current, *config = NULL;
|
||||
SLIST_FOREACH(current, &barconfigs, configs) {
|
||||
TAILQ_FOREACH(current, &barconfigs, configs) {
|
||||
if (strcmp(current->id, bar_id) != 0)
|
||||
continue;
|
||||
|
||||
|
Reference in New Issue
Block a user