sxhkd-rc

[fork] simple X hotkey daemon (but for the rc shell)
Log | Files | Refs | README | LICENSE

commit e8af6884c0cc919383cf88b68b1987a851e603ab
parent 864c4956bc628efe452a11a6a08fdcce563f76eb
Author: Daniel Walter <sahne@0x90.at>
Date:   Wed,  4 Dec 2013 12:10:27 +0100

Fix endless loop during startup

On armv7 sxhkd will hang during option parsing
due to a missing cast.

Diffstat:
Msxhkd.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sxhkd.c b/sxhkd.c @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) ignore_mapping = false; timeout = TIMEOUT; - while ((opt = getopt(argc, argv, "vhnt:c:r:s:")) != -1) { + while ((opt = getopt(argc, argv, "vhnt:c:r:s:")) != (char)-1) { switch (opt) { case 'v': printf("%s\n", VERSION);