From owner-p4-projects@FreeBSD.ORG Wed Dec 12 11:49:21 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 16A0716A46B; Wed, 12 Dec 2007 11:49:21 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1B6116A41B for ; Wed, 12 Dec 2007 11:49:20 +0000 (UTC) (envelope-from gcooper@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A26A013C474 for ; Wed, 12 Dec 2007 11:49:20 +0000 (UTC) (envelope-from gcooper@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 lBCBnKlS006728 for ; Wed, 12 Dec 2007 11:49:20 GMT (envelope-from gcooper@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBCBnKEu006725 for perforce@freebsd.org; Wed, 12 Dec 2007 11:49:20 GMT (envelope-from gcooper@FreeBSD.org) Date: Wed, 12 Dec 2007 11:49:20 GMT Message-Id: <200712121149.lBCBnKEu006725@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gcooper@FreeBSD.org using -f From: Garrett Cooper To: Perforce Change Reviews Cc: Subject: PERFORCE change 130696 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2007 11:49:21 -0000 http://perforce.freebsd.org/chv.cgi?CH=130696 Change 130696 by gcooper@shiina-ibook on 2007/12/12 11:48:28 Use size_t instead of unsigned int (for platform portability?). I just find size_t more consistent with use of sizeof(..). Affected files ... .. //depot/projects/soc2007/revised_fbsd_pkgtools/pkg_revised/v2/contrib/libpkg/pkg_db_freebsd.c#6 edit Differences ... ==== //depot/projects/soc2007/revised_fbsd_pkgtools/pkg_revised/v2/contrib/libpkg/pkg_db_freebsd.c#6 (text+ko) ==== @@ -326,9 +326,9 @@ struct dirent *de; char *dir; struct pkg **packages; - unsigned int packages_size; + size_t packages_size; unsigned int packages_pos; - + assert(db != NULL); assert(db->db_base != NULL);