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/netgraph/ng_ppp.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/netgraph/ng_ppp.c')
-rw-r--r-- | sys/netgraph/ng_ppp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_ppp.c b/sys/netgraph/ng_ppp.c index 169e65b..2097de1 100644 --- a/sys/netgraph/ng_ppp.c +++ b/sys/netgraph/ng_ppp.c @@ -276,7 +276,8 @@ ng_ppp_newhook(node_p node, hook_p hook, const char *name) /* Figure out which hook it is */ if (strncmp(name, NG_PPP_HOOK_LINK_PREFIX, /* a link hook? */ strlen(NG_PPP_HOOK_LINK_PREFIX)) == 0) { - const char *cp, *eptr; + const char *cp; + char *eptr; cp = name + strlen(NG_PPP_HOOK_LINK_PREFIX); if (!isdigit(*cp) || (cp[0] == '0' && cp[1] != '\0')) |