From owner-p4-projects@FreeBSD.ORG Thu Oct 18 10:02:10 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BCFAB16A41B; Thu, 18 Oct 2007 10:02:10 +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 74BDA16A41A for ; Thu, 18 Oct 2007 10:02:10 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 66A5D13C459 for ; Thu, 18 Oct 2007 10:02:10 +0000 (UTC) (envelope-from jb@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 l9IA2AKw036656 for ; Thu, 18 Oct 2007 10:02:10 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9IA2ADA036653 for perforce@freebsd.org; Thu, 18 Oct 2007 10:02:10 GMT (envelope-from jb@freebsd.org) Date: Thu, 18 Oct 2007 10:02:10 GMT Message-Id: <200710181002.l9IA2ADA036653@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 127692 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, 18 Oct 2007 10:02:11 -0000 http://perforce.freebsd.org/chv.cgi?CH=127692 Change 127692 by jb@jb_freebsd1 on 2007/10/18 10:01:16 Const-ify an argument. Affected files ... .. //depot/projects/dtrace/src/lib/libutil/expand_number.3#3 edit .. //depot/projects/dtrace/src/lib/libutil/expand_number.c#2 edit .. //depot/projects/dtrace/src/lib/libutil/libutil.h#5 edit Differences ... ==== //depot/projects/dtrace/src/lib/libutil/expand_number.3#3 (text+ko) ==== @@ -37,7 +37,7 @@ .In libutil.h .Ft int .Fo expand_number -.Fa "char *buf" "int64_t *num" +.Fa "const char *buf" "int64_t *num" .Fc .Sh DESCRIPTION The ==== //depot/projects/dtrace/src/lib/libutil/expand_number.c#2 (text+ko) ==== @@ -46,7 +46,7 @@ * 8) A positive decimal number followed by a 'e' or 'E' (mult by 1 << 60). */ int -expand_number(char *buf, int64_t *num) +expand_number(const char *buf, int64_t *num) { static const char unit[] = "bkmgtpe"; char *endptr, s; ==== //depot/projects/dtrace/src/lib/libutil/libutil.h#5 (text+ko) ==== @@ -82,7 +82,7 @@ struct termios *_termp, struct winsize *_winp); int humanize_number(char *_buf, size_t _len, int64_t _number, const char *_suffix, int _scale, int _flags); -int expand_number(char *_buf, int64_t *_num); +int expand_number(const char *_buf, int64_t *_num); const char *uu_lockerr(int _uu_lockresult); int uu_lock(const char *_ttyname); int uu_unlock(const char *_ttyname);