svn commit: r204811 - head/usr.bin/uniq

Andrey A. Chernov ache at FreeBSD.org
Sat Mar 6 22:38:39 UTC 2010


Author: ache
Date: Sat Mar  6 22:38:38 2010
New Revision: 204811
URL: http://svn.freebsd.org/changeset/base/204811

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

Modified:
  head/usr.bin/uniq/uniq.c

Modified: head/usr.bin/uniq/uniq.c
==============================================================================
--- head/usr.bin/uniq/uniq.c	Sat Mar  6 22:04:45 2010	(r204810)
+++ head/usr.bin/uniq/uniq.c	Sat Mar  6 22:38:38 2010	(r204811)
@@ -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)


More information about the svn-src-head mailing list