seq: some cleanup

This commit is contained in:
Connor Lane Smith
2012-05-10 19:20:16 +01:00
parent c018f86fc7
commit 6e0f5c1409
4 changed files with 122 additions and 148 deletions

View File

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