Fix endless loop due to missing cast

On armv7 bspwm startup hangs during startup
due to a missing cast.
This commit is contained in:
Daniel Walter 2013-12-04 12:07:55 +01:00
parent beabeb8d6f
commit abb4094ce2

View file

@ -62,7 +62,7 @@ int main(int argc, char *argv[])
xcb_generic_event_t *event; xcb_generic_event_t *event;
char opt; char opt;
while ((opt = getopt(argc, argv, "hvc:")) != -1) { while ((opt = getopt(argc, argv, "hvc:")) != (char)-1) {
switch (opt) { switch (opt) {
case 'h': case 'h':
printf(WM_NAME " [-h|-v|-c CONFIG_PATH]\n"); printf(WM_NAME " [-h|-v|-c CONFIG_PATH]\n");