diff options
author | archie <archie@FreeBSD.org> | 1999-11-24 01:03:08 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 1999-11-24 01:03:08 +0000 |
commit | d6eae9ff980dd5cb8c77eef5beb21a67fb84ac95 (patch) | |
tree | 5d5c85e2a99196d3f704d5a25197f1fa4f3081f2 /sys/pci/if_mn.c | |
parent | e060599533305d04d652d2f055850e47b7b69662 (diff) | |
download | FreeBSD-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/pci/if_mn.c')
-rw-r--r-- | sys/pci/if_mn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/if_mn.c b/sys/pci/if_mn.c index 99d03d7..88bb1ac 100644 --- a/sys/pci/if_mn.c +++ b/sys/pci/if_mn.c @@ -424,7 +424,7 @@ mn_parse_ts(const char *s) { unsigned r; int i, j; - const char *p; + char *p; r = 0; j = 0; @@ -438,11 +438,11 @@ mn_parse_ts(const char *s) j = 0; r |= 1 << i; if (*p == ',') { - s = p + 1; + s = (const char *)p + 1; continue; } else if (*p == '-') { j = i; - s = p + 1; + s = (const char *)p + 1; continue; } else if (!*p) { break; |