summaryrefslogtreecommitdiffstats
path: root/sys/pc98/i386
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1999-11-24 01:03:08 +0000
committerarchie <archie@FreeBSD.org>1999-11-24 01:03:08 +0000
commitd6eae9ff980dd5cb8c77eef5beb21a67fb84ac95 (patch)
tree5d5c85e2a99196d3f704d5a25197f1fa4f3081f2 /sys/pc98/i386
parente060599533305d04d652d2f055850e47b7b69662 (diff)
downloadFreeBSD-src-d6eae9ff980dd5cb8c77eef5beb21a67fb84ac95.zip
FreeBSD-src-d6eae9ff980dd5cb8c77eef5beb21a67fb84ac95.tar.gz
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
Diffstat (limited to 'sys/pc98/i386')
-rw-r--r--sys/pc98/i386/machdep.c2
-rw-r--r--sys/pc98/i386/userconfig.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index e265322..6955590 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 354bdd2..34924fa 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;
OpenPOWER on IntegriCloud