Remove vestiges of old %-format which prevents build on amd64

This commit is contained in:
Andrey A. Chernov 2010-03-06 22:38:38 +00:00
parent 1d7429e0a9
commit aa6c3b4c60
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204811

View File

@ -195,7 +195,7 @@ getlinemax(char *buf, FILE *fp)
while ((ch = getc(fp)) != EOF && ch != '\n') {
buf[bufpos++] = ch;
if (bufpos >= LINE_MAX)
errx(1, "Maximum line length (%zu) exceeded",
errx(1, "Maximum line length (%d) exceeded",
LINE_MAX);
}
buf[bufpos] = '\0';
@ -210,7 +210,7 @@ convert(wchar_t *buf, const char *str)
wchar_t *p, *ret;
if ((n = mbstowcs(buf, str, LINE_MAX)) == LINE_MAX)
errx(1, "Maximum line length (%zu) exceeded", LINE_MAX);
errx(1, "Maximum line length (%d) exceeded", LINE_MAX);
else if (n != (size_t)-1) {
/* If requested get the chosen fields + character offsets. */
if (numfields || numchars)