Shorten error messages

This commit is contained in:
Arun Prakash Jana 2017-12-24 21:22:54 +05:30
parent f2387898f3
commit 78f544c41d
No known key found for this signature in database
GPG key ID: A75979F35C080412

4
nnn.c
View file

@ -2936,13 +2936,13 @@ main(int argc, char *argv[])
/* Initialize inotify */ /* Initialize inotify */
inotify_fd = inotify_init1(IN_NONBLOCK); inotify_fd = inotify_init1(IN_NONBLOCK);
if (inotify_fd < 0) { if (inotify_fd < 0) {
fprintf(stderr, "Cannot initialize inotify: %s\n", strerror(errno)); fprintf(stderr, "inotify init! %s\n", strerror(errno));
exit(1); exit(1);
} }
#elif defined(BSD_KQUEUE) #elif defined(BSD_KQUEUE)
kq = kqueue(); kq = kqueue();
if (kq < 0) { if (kq < 0) {
fprintf(stderr, "Cannot initialize kqueue: %s\n", strerror(errno)); fprintf(stderr, "kqueue init! %s\n", strerror(errno));
exit(1); exit(1);
} }