Sort includes and more cleanup and fixes in util/

This commit is contained in:
FRIGN
2014-11-13 19:54:28 +01:00
committed by sin
parent 0810c61154
commit 7d2683ddf2
48 changed files with 181 additions and 173 deletions

View File

@@ -13,13 +13,13 @@ estrtol(const char *s, int base)
errno = 0;
n = strtol(s, &end, base);
if(*end != '\0') {
if(base == 0)
if (*end != '\0') {
if (base == 0)
eprintf("%s: not an integer\n", s);
else
eprintf("%s: not a base %d integer\n", s, base);
}
if(errno != 0)
if (errno != 0)
eprintf("%s:", s);
return n;