diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-12-16 23:55:16 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-17 19:03:39 +0100 |
commit | cea1f71ee21451d89cddeff04d8145697a5deab8 (patch) | |
tree | 081fcff45f5e6532e969eeac2aeaf5353ee93737 /util/atoi.c | |
parent | 827c01fadb98e77f692d39d0fb34a1944e43c99b (diff) |
util: qualify pointers whose dereferenced values are constant with const
Diffstat (limited to 'util/atoi.c')
-rw-r--r-- | util/atoi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/atoi.c b/util/atoi.c index 64816b9..e56f50d 100644 --- a/util/atoi.c +++ b/util/atoi.c @@ -91,11 +91,11 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ int mach_atoi(cp, nump) -u_char *cp; -int *nump; +const u_char *cp; +int *nump; { - int number; - u_char *original; + int number; + const u_char *original; original = cp; for (number = 0; ('0' <= *cp) && (*cp <= '9'); cp++) |