Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2007 10:02:10 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 127692 for review
Message-ID:  <200710181002.l9IA2ADA036653@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710181002.l9IA2ADA036653>