Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2009 20:32:16 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 169466 for review
Message-ID:  <200910132032.n9DKWGpg066865@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=169466

Change 169466 by rwatson@rwatson_freebsd_capabilities on 2009/10/13 20:31:45

	printf() size_t's using %zu to please 64-bit builds.

Affected files ...

.. //depot/projects/trustedbsd/capabilities/src/usr.bin/gzip/gzsandbox.c#9 edit

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/usr.bin/gzip/gzsandbox.c#9 (text+ko) ====

@@ -145,7 +145,7 @@
 	    fdarray, 2, &iov_rep, 1, &len, NULL, NULL) < 0)
 		err(-1, "lch_rpc_rights");
 	if (len != sizeof(rep))
-		errx(-1, "lch_rpc_rights len %d", len);
+		errx(-1, "lch_rpc_rights len %zu", len);
 	if (gsizep != NULL)
 		*gsizep = rep.hgc_rep_gsize;
 	close(fdarray[0]);
@@ -162,7 +162,7 @@
 	struct iovec iov;
 
 	if (len != sizeof(req))
-		err(-1, "sandbox_gz_compress_buffer: len %d", len);
+		err(-1, "sandbox_gz_compress_buffer: len %zu", len);
 
 	bcopy(buffer, &req, sizeof(req));
 	bzero(&rep, sizeof(rep));
@@ -226,7 +226,7 @@
 	    fdarray, 2, &iov_rep, 1, &len, NULL, NULL) < 0)
 		err(-1, "lch_rpc_rights");
 	if (len != sizeof(rep))
-		errx(-1, "lch_rpc_rights len %d", len);
+		errx(-1, "lch_rpc_rights len %zu", len);
 	if (gsizep != NULL)
 		*gsizep = rep.hgu_rep_gsize;
 	close(fdarray[0]);
@@ -244,7 +244,7 @@
 	char *pre;
 
 	if (len != sizeof(req))
-		err(-1, "sandbox_gz_uncompress_buffer: len %d", len);
+		err(-1, "sandbox_gz_uncompress_buffer: len %zu", len);
 
 	bcopy(buffer, &req, sizeof(req));
 	pre = buffer + sizeof(req);
@@ -306,7 +306,7 @@
 	    fdarray, 2, &iov_rep, 1, &len, NULL, NULL) < 0)
 		err(-1, "lch_rpc_rights");
 	if (len != sizeof(rep))
-		errx(-1, "lch_rpc_rights len %d", len);
+		errx(-1, "lch_rpc_rights len %zu", len);
 	if (bytes_in != NULL)
 		*bytes_in = rep.hub_rep_bytes_in;
 	close(fdarray[0]);
@@ -324,7 +324,7 @@
 	char *pre;
 
 	if (len != sizeof(req))
-		err(-1, "sandbox_gz_uncompress_buffer: len %d", len);
+		err(-1, "sandbox_gz_uncompress_buffer: len %zu", len);
 
 	bcopy(buffer, &req, sizeof(req));
 	pre = buffer + sizeof(req);



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