From owner-p4-projects@FreeBSD.ORG Thu Feb 12 10:01:04 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B2E761065672; Thu, 12 Feb 2009 10:01:03 +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 7261E106566B for ; Thu, 12 Feb 2009 10:01:03 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5F20E8FC14 for ; Thu, 12 Feb 2009 10:01:03 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n1CA13Ju012453 for ; Thu, 12 Feb 2009 10:01:03 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1CA13Ch012451 for perforce@freebsd.org; Thu, 12 Feb 2009 10:01:03 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 12 Feb 2009 10:01:03 GMT Message-Id: <200902121001.n1CA13Ch012451@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 157587 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: Thu, 12 Feb 2009 10:01:05 -0000 http://perforce.freebsd.org/chv.cgi?CH=157587 Change 157587 by rwatson@rwatson_cinnamon on 2009/02/12 10:00:55 Fix warning building on 32-bit FreeBSD systems: cast size_t to uintmax_t and use %ju for scanf. Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#28 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#28 (text+ko) ==== @@ -27,7 +27,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#27 $ + * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#28 $ */ #include @@ -437,7 +437,7 @@ while (*str == ' ' || *str == '\t') str++; - nparsed = sscanf(str, "%lu%c", &val, &mult); + nparsed = sscanf(str, "%ju%c", (uintmax_t *)&val, &mult); switch (nparsed) { case 1: