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_sample.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_sample.c')
-rw-r--r-- | sys/netgraph/ng_sample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_sample.c b/sys/netgraph/ng_sample.c index 8e2da75..5c68ad9 100644 --- a/sys/netgraph/ng_sample.c +++ b/sys/netgraph/ng_sample.c @@ -178,7 +178,7 @@ ng_xxx_newhook(node_p node, hook_p hook, const char *name) * file. */ if (strncmp(name, NG_XXX_HOOK_DLCI_LEADIN, strlen(NG_XXX_HOOK_DLCI_LEADIN)) == 0) { - const char *eptr; + char *eptr; cp = name + sizeof(NG_XXX_HOOK_DLCI_LEADIN); if (!isdigit(*cp) || (cp[0] == '0' && cp[1] != '\0')) |