summaryrefslogtreecommitdiff
path: root/inotail.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-06-11 17:46:50 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-06-11 17:46:50 +0200
commit5015c1eb9a07b2f8351249eac62ab1fe55f03395 (patch)
treeac72a070d44df32b1a3100db91d430ad4952f743 /inotail.c
parent01f54bb5e9a1d6373a508859dcc809f5cdb5cd64 (diff)
inotail.c/.h: Implement is_digit to save some bytes of ctype.h inclusion
Diffstat (limited to 'inotail.c')
-rw-r--r--inotail.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/inotail.c b/inotail.c
index bb27702..075bb5d 100644
--- a/inotail.c
+++ b/inotail.c
@@ -30,7 +30,6 @@
#include <fcntl.h>
#include <errno.h>
#include <getopt.h>
-#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -451,7 +450,7 @@ int main(int argc, char **argv)
} else if (*optarg == '-')
optarg++;
- if (!isdigit(*optarg)) {
+ if (!is_digit(*optarg)) {
fprintf(stderr, "Invalid number of lines: %s\n", optarg);
exit(EXIT_FAILURE);
}