linput

Listen to input events
git clone git://git.akobets.xyz/linput
Log | Files | Refs | README | LICENSE

commit bae683a29a34cb6697dbc4c65b2fa91a2e8ea40a
parent de4e5fd0f5eee55f1bb8b892589732cc425503ad
Author: Artem Kobets <artem@akobets.xyz>
Date:   Tue, 21 Apr 2020 19:53:06 +0300

typos

Diffstat:
Mlinput.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/linput.c b/linput.c @@ -314,7 +314,7 @@ generate_poll_array() nfds = n; pfds = realloc(pfds, sizeof(struct pollfd) * n); if (pfds == NULL) - die("linput: malloc: %s\n", strerror(errno)); + die("linput: realloc: %s\n", strerror(errno)); } pfds[0].fd = inotify_fd; @@ -501,8 +501,7 @@ main(int argc, char **argv) int res; if (argc == 2 && strcmp("-v", argv[1]) == 0) { - printf("linput %s\n", VERSION); - exit(EXIT_SUCCESS); + die("linput %s\n", VERSION); } else if (argc != 1) die("usage: linput [-v]\n");