From owner-svn-src-projects@FreeBSD.ORG Tue Oct 13 20:32:50 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B1551065692; Tue, 13 Oct 2009 20:32:50 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5FDF28FC13; Tue, 13 Oct 2009 20:32:50 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n9DKWoIf015850; Tue, 13 Oct 2009 20:32:50 GMT (envelope-from rwatson@svn.freebsd.org) Received: (from rwatson@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n9DKWom1015848; Tue, 13 Oct 2009 20:32:50 GMT (envelope-from rwatson@svn.freebsd.org) Message-Id: <200910132032.n9DKWom1015848@svn.freebsd.org> From: Robert Watson Date: Tue, 13 Oct 2009 20:32:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r198051 - projects/capabilities8/usr.bin/gzip X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2009 20:32:50 -0000 Author: rwatson Date: Tue Oct 13 20:32:50 2009 New Revision: 198051 URL: http://svn.freebsd.org/changeset/base/198051 Log: Merge Perforce c169466 into the capabilities8 branch: printf() size_t's using %zu to please 64-bit builds. Modified: projects/capabilities8/usr.bin/gzip/gzsandbox.c Modified: projects/capabilities8/usr.bin/gzip/gzsandbox.c ============================================================================== --- projects/capabilities8/usr.bin/gzip/gzsandbox.c Tue Oct 13 20:29:14 2009 (r198050) +++ projects/capabilities8/usr.bin/gzip/gzsandbox.c Tue Oct 13 20:32:50 2009 (r198051) @@ -145,7 +145,7 @@ gz_compress_insandbox(int in, int out, o 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 @@ sandbox_gz_compress_buffer(struct lc_hos 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 @@ gz_uncompress_insandbox(int in, int out, 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 @@ sandbox_gz_uncompress_buffer(struct lc_h 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 @@ unbzip2_insandbox(int in, int out, char 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 @@ sandbox_unbzip2_buffer(struct lc_host *l 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);