PERFORCE change 127692 for review
John Birrell
jb at FreeBSD.org
Thu Oct 18 03:02:11 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=127692
Change 127692 by jb at 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);
More information about the p4-projects
mailing list