Big cleanup: Remove trailing whitespace from files (except those imported
from external sources).
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# lcdexec LCDproc client configuration file
|
||||
# lcdexec LCDproc client configuration file
|
||||
|
||||
## general options for lcdexec ##
|
||||
[lcdexec]
|
||||
|
||||
+16
-16
@@ -281,7 +281,7 @@ int menu_sock_send(MenuEntry *me, MenuEntry *parent, int sock)
|
||||
if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -menu_result quit\n",
|
||||
parent_id, me->id) < 0)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ((parent != NULL) && (me->id != 0)) {
|
||||
if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" menu \"%s\"\n",
|
||||
@@ -293,14 +293,14 @@ int menu_sock_send(MenuEntry *me, MenuEntry *parent, int sock)
|
||||
for (entry = me->children; entry != NULL; entry = entry->next) {
|
||||
if (menu_sock_send(entry, me, sock) < 0)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MT_ARG_SLIDER:
|
||||
if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" slider -text \"%s\""
|
||||
" -value %d -minvalue %d -maxvalue %d"
|
||||
" -mintext \"%s\" -maxtext \"%s\" -stepsize %d\n",
|
||||
parent_id, me->id, me->displayname,
|
||||
parent_id, me->id, me->displayname,
|
||||
me->data.slider.value,
|
||||
me->data.slider.minval,
|
||||
me->data.slider.maxval,
|
||||
@@ -313,7 +313,7 @@ int menu_sock_send(MenuEntry *me, MenuEntry *parent, int sock)
|
||||
if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n",
|
||||
parent_id, me->id) < 0)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MT_ARG_RING:
|
||||
{
|
||||
@@ -331,7 +331,7 @@ int menu_sock_send(MenuEntry *me, MenuEntry *parent, int sock)
|
||||
|
||||
if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" ring -text \"%s\""
|
||||
" -value %d -strings \"%s\"\n",
|
||||
parent_id, me->id, me->displayname,
|
||||
parent_id, me->id, me->displayname,
|
||||
me->data.ring.value,
|
||||
tmp) < 0)
|
||||
return -1;
|
||||
@@ -341,12 +341,12 @@ int menu_sock_send(MenuEntry *me, MenuEntry *parent, int sock)
|
||||
if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n",
|
||||
parent_id, me->id) < 0)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MT_ARG_NUMERIC:
|
||||
if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" numeric -text \"%s\""
|
||||
" -value %d -minvalue %d -maxvalue %d\n",
|
||||
parent_id, me->id, me->displayname,
|
||||
parent_id, me->id, me->displayname,
|
||||
me->data.numeric.value,
|
||||
me->data.numeric.minval,
|
||||
me->data.numeric.maxval) < 0)
|
||||
@@ -356,14 +356,14 @@ int menu_sock_send(MenuEntry *me, MenuEntry *parent, int sock)
|
||||
if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n",
|
||||
parent_id, me->id) < 0)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MT_ARG_ALPHA:
|
||||
if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" alpha -text \"%s\""
|
||||
" -value \"%s\" -minlength %d -maxlength %d"
|
||||
" -allow_caps false -allow_noncaps false"
|
||||
" -allow_numbers false -allowed_extra \"%s\"\n",
|
||||
parent_id, me->id, me->displayname,
|
||||
parent_id, me->id, me->displayname,
|
||||
me->data.alpha.value,
|
||||
me->data.alpha.minlen,
|
||||
me->data.alpha.maxlen,
|
||||
@@ -374,12 +374,12 @@ int menu_sock_send(MenuEntry *me, MenuEntry *parent, int sock)
|
||||
if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n",
|
||||
parent_id, me->id) < 0)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MT_ARG_IP:
|
||||
if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" ip -text \"%s\""
|
||||
" -value \"%s\" -v6 %s\n",
|
||||
parent_id, me->id, me->displayname,
|
||||
parent_id, me->id, me->displayname,
|
||||
me->data.ip.value,
|
||||
boolValueName[me->data.ip.v6]) < 0)
|
||||
return -1;
|
||||
@@ -388,12 +388,12 @@ int menu_sock_send(MenuEntry *me, MenuEntry *parent, int sock)
|
||||
if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n",
|
||||
parent_id, me->id) < 0)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MT_ARG_CHECKBOX:
|
||||
if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" checkbox -text \"%s\""
|
||||
" -value %s -allow_gray %s\n",
|
||||
parent_id, me->id, me->displayname,
|
||||
parent_id, me->id, me->displayname,
|
||||
triGrayValueName[me->data.checkbox.value],
|
||||
boolValueName[me->data.checkbox.allow_gray]) < 0)
|
||||
return -1;
|
||||
@@ -402,7 +402,7 @@ int menu_sock_send(MenuEntry *me, MenuEntry *parent, int sock)
|
||||
if (sock_printf(sock, "menu_set_item \"%s\" \"%d\" -next _quit_\n",
|
||||
parent_id, me->id) < 0)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MT_ARG_ACTION | MT_AUTOMATIC:
|
||||
if (sock_printf(sock, "menu_add_item \"%s\" \"%d\" action \"%s\"\n",
|
||||
@@ -515,7 +515,7 @@ void menu_free(MenuEntry *me)
|
||||
free(me->data.checkbox.map[i]);
|
||||
me->data.checkbox.map[i] = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user