diff options
author | Archie Cobbs <archie@FreeBSD.org> | 1999-11-24 01:03:08 +0000 |
---|---|---|
committer | Archie Cobbs <archie@FreeBSD.org> | 1999-11-24 01:03:08 +0000 |
commit | 25792ef324067204618bc8ee5b465f4a625319a1 (patch) | |
tree | f4578629bb15de693acb6c12fbea227630f73671 /sys/pc98/i386 | |
parent | a86ab8174f2e82461b40f01b6f25eec8e3d2606c (diff) | |
download | src-25792ef324067204618bc8ee5b465f4a625319a1.tar.gz src-25792ef324067204618bc8ee5b465f4a625319a1.zip |
Change the prototype of the strto* routines to make the second
parameter a char ** instead of a const char **. This make these
kernel routines consistent with the corresponding libc userland
routines.
Which is actually 'correct' is debatable, but consistency and
following the spec was deemed more important in this case.
Reviewed by (in concept): phk, bde
Notes
Notes:
svn path=/head/; revision=53648
Diffstat (limited to 'sys/pc98/i386')
-rw-r--r-- | sys/pc98/i386/machdep.c | 2 | ||||
-rw-r--r-- | sys/pc98/i386/userconfig.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index e26532205298..6955590cbf52 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -1805,7 +1805,7 @@ physmap_done: */ if ((cp = getenv("hw.physmem")) != NULL) { u_int64_t AllowMem, sanity; - const char *ep; + char *ep; sanity = AllowMem = strtouq(cp, &ep, 0); if ((ep != cp) && (*ep != 0)) { diff --git a/sys/pc98/i386/userconfig.c b/sys/pc98/i386/userconfig.c index 354bdd21192a..34924fa6a678 100644 --- a/sys/pc98/i386/userconfig.c +++ b/sys/pc98/i386/userconfig.c @@ -2787,7 +2787,7 @@ static int parse_args(const char *cmd, CmdParm *parms) { while (1) { - const char *ptr; + char *ptr; if (*cmd == ' ' || *cmd == '\t') { ++cmd; @@ -2816,7 +2816,7 @@ parse_args(const char *cmd, CmdParm *parms) return 1; } /* XXX else should require end of token. */ - cmd = ptr; + cmd = (const char *)ptr; } if ((parms->parm.dparm = find_device(devname, unit)) == NULL) { printf("No such device: %s%d\n", devname, unit); @@ -2831,7 +2831,7 @@ parse_args(const char *cmd, CmdParm *parms) printf("Invalid numeric argument\n"); return 1; } - cmd = ptr; + cmd = (const char *)ptr; ++parms; continue; } @@ -2841,7 +2841,7 @@ parse_args(const char *cmd, CmdParm *parms) printf("Invalid address argument\n"); return 1; } - cmd = ptr; + cmd = (const char *)ptr; ++parms; continue; } @@ -2987,7 +2987,7 @@ set_pnp_parms(CmdParm *parms) { u_long idx, val, ldn, csn; int i; - const char *q; + char *q; const char *p = parms[0].parm.u.sparm; struct pnp_cinfo d; |