sxhkd-rc

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

commit 18da75dc244a9ba14b72f378d7f67abb80183aec
parent 674bb7c0db701a64760627861ca2898aedd037d0
Author: Bastien Dejean <nihilhill@gmail.com>
Date:   Mon, 11 Apr 2016 18:39:11 +0200

Use the proper type for the return value of getopt

Diffstat:
Msxhkd.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sxhkd.c b/sxhkd.c @@ -37,7 +37,7 @@ int main(int argc, char *argv[]) { - char opt; + int opt; char *fifo_path = NULL; status_fifo = NULL; config_path = NULL; @@ -46,7 +46,7 @@ int main(int argc, char *argv[]) grabbed = false; redir_fd = -1; - while ((opt = getopt(argc, argv, "hvm:t:c:r:s:")) != (char)-1) { + while ((opt = getopt(argc, argv, "hvm:t:c:r:s:")) != -1) { switch (opt) { case 'v': printf("%s\n", VERSION);