diff options
author | jb <jb@FreeBSD.org> | 2007-11-18 02:20:02 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2007-11-18 02:20:02 +0000 |
commit | 1897d443737babd0f1fc863aaa795ababef2cc69 (patch) | |
tree | 806bfb9a30a25f180257ead37ca1fa1a69de2d0a /lib/libutil/expand_number.c | |
parent | e14c498cfa6d5238a4bd07f36e48f48f211de745 (diff) | |
download | FreeBSD-src-1897d443737babd0f1fc863aaa795ababef2cc69.zip FreeBSD-src-1897d443737babd0f1fc863aaa795ababef2cc69.tar.gz |
Constify the first argument to expand_number() so that it can
be called with a const without the compiler grisling.
Diffstat (limited to 'lib/libutil/expand_number.c')
-rw-r--r-- | lib/libutil/expand_number.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/expand_number.c b/lib/libutil/expand_number.c index 5cc2608..0f896ee 100644 --- a/lib/libutil/expand_number.c +++ b/lib/libutil/expand_number.c @@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$"); * 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; |