Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Mar 2010 22:38:38 +0000 (UTC)
From:      "Andrey A. Chernov" <ache@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r204811 - head/usr.bin/uniq
Message-ID:  <201003062238.o26MccmU058110@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003062238.o26MccmU058110>