stagit

git site generator
Contents

simplify range check

Hiltjo Posthuma hiltjo@codemadness.org

commit: f30beaa parent: 802818d
1 files changed, 1 insertions(+), 4 deletions(-)
Mstagit.c+1-4
M · stagit.c +1, -4
 1@@ -1042,10 +1042,7 @@ main(int argc, char *argv[])
 2 errno = 0;
 3 nlogcommits =
strtoll(argv[++i], &p, 10);
 4 if (argv[i][0] ==
'\0' || *p != '\0' ||
 5- nlogcommits <= 0)
 6- usage(argv[0]);
 7- if (errno == ERANGE
&& (nlogcommits == LLONG_MAX ||
 8- nlogcommits ==
LLONG_MIN))
 9+ nlogcommits <=
0 || errno)
10 usage(argv[0]);
11 }
12 }