commit 2b0f9713e72fb8fa4685476a5c6f14c26cfbc955
parent 864c4956bc628efe452a11a6a08fdcce563f76eb
Author: Bastien Dejean <nihilhill@gmail.com>
Date: Wed, 4 Dec 2013 08:46:56 -0800
Merge pull request #15 from sahne/master
Fix endless loop during startup
Diffstat:
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);