From owner-cvs-all@FreeBSD.ORG Thu Jan 3 17:54:27 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6EE516A420; Thu, 3 Jan 2008 17:54:27 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B808C13C447; Thu, 3 Jan 2008 17:54:27 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m03HsR52035714; Thu, 3 Jan 2008 17:54:27 GMT (envelope-from des@repoman.freebsd.org) Received: (from des@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m03HsRwZ035708; Thu, 3 Jan 2008 17:54:27 GMT (envelope-from des) Message-Id: <200801031754.m03HsRwZ035708@repoman.freebsd.org> From: Dag-Erling Smorgrav Date: Thu, 3 Jan 2008 17:54:27 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libarchive archive_read.c archive_read_private.h archive_read_support_format_zip.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2008 17:54:27 -0000 des 2008-01-03 17:54:27 UTC FreeBSD src repository Modified files: lib/libarchive archive_read.c archive_read_private.h archive_read_support_format_zip.c Log: Add an internal utility function to simplify the many, many places where the number of bytes read is actually not important as long as we have at least what we ask for. Illustrate its benefits by using it throughout the ZIP support code, except for the few cases where it doesn't apply. Approved by: kientzle Revision Changes Path 1.37 +11 -0 src/lib/libarchive/archive_read.c 1.4 +3 -0 src/lib/libarchive/archive_read_private.h 1.18 +10 -25 src/lib/libarchive/archive_read_support_format_zip.c