kwo pushed a commit to branch master. http://git.enlightenment.org/e16/e16.git/commit/?id=02001e632d148984f929ea8ba0a7b5aab282ba94
commit 02001e632d148984f929ea8ba0a7b5aab282ba94 Author: Kim Woelders <k...@woelders.dk> Date: Sun May 3 04:28:19 2020 +0200 groups.c: Mostly cosmetic changes around group configuration --- src/groups.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/groups.c b/src/groups.c index 58aebc20..488c145e 100644 --- a/src/groups.c +++ b/src/groups.c @@ -1354,20 +1354,19 @@ IPC_Group(const char *params) IpcPrintf("%s: off\n", operation); } -#if ENABLE_DIALOGS static void -GroupsIpc(const char *params) +IPC_GroupsConfig(const char *params) { const char *p; - char cmd[128], prm[128]; + char cmd[128]; int len; - cmd[0] = prm[0] = '\0'; + cmd[0] = '\0'; p = params; if (p) { len = 0; - sscanf(p, "%100s %100s %n", cmd, prm, &len); + sscanf(p, "%100s %n", cmd, &len); p += len; } @@ -1375,22 +1374,21 @@ GroupsIpc(const char *params) { /* Show groups */ } - else if (!strncmp(cmd, "cfg", 2)) +#if ENABLE_DIALOGS + else if (!strcmp(cmd, "cfg")) { - GroupsConfigure(prm); + GroupsConfigure(p); } +#endif } -#endif /* ENABLE_DIALOGS */ static const IpcItem GroupsIpcArray[] = { -#if ENABLE_DIALOGS { - GroupsIpc, + IPC_GroupsConfig, "groups", "grp", "Configure window groups", " groups cfg Configure groups\n"} , -#endif /* ENABLE_DIALOGS */ { IPC_GroupInfo, "group_info", "gl", --