]> git.lizzy.rs Git - bspwm.git/commitdiff
Merge pull request #102 from sahne/master
authorBastien Dejean <nihilhill@gmail.com>
Wed, 4 Dec 2013 16:45:21 +0000 (08:45 -0800)
committerBastien Dejean <nihilhill@gmail.com>
Wed, 4 Dec 2013 16:45:21 +0000 (08:45 -0800)
Fix endless loop due to missing cast

bspwm.c

diff --git a/bspwm.c b/bspwm.c
index 680ea6b5aa2418f2bc9d67c3ef891a8f090c4f76..ef4c7deab3e9ca0ee404ac67f2dd6d8e45e36d7d 100644 (file)
--- a/bspwm.c
+++ b/bspwm.c
@@ -62,7 +62,7 @@ int main(int argc, char *argv[])
     xcb_generic_event_t *event;
     char opt;
 
-    while ((opt = getopt(argc, argv, "hvc:")) != -1) {
+    while ((opt = getopt(argc, argv, "hvc:")) != (char)-1) {
         switch (opt) {
             case 'h':
                 printf(WM_NAME " [-h|-v|-c CONFIG_PATH]\n");