diff options
author | dim <dim@FreeBSD.org> | 2015-02-03 07:59:33 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-02-03 07:59:33 +0000 |
commit | 43997c3f039dde8629e1b72f1bf04f6d426bb919 (patch) | |
tree | 51fd0dd2cf467518f7e6489fc4548de30635411d /sys/netgraph/ng_parse.c | |
parent | f1bce3cd6456129c133faab5efa9f38631dffa50 (diff) | |
download | FreeBSD-src-43997c3f039dde8629e1b72f1bf04f6d426bb919.zip FreeBSD-src-43997c3f039dde8629e1b72f1bf04f6d426bb919.tar.gz |
MFC r277951:
Fix a bunch of -Wcast-qual warnings in netgraph's ng_parse.c, by using
__DECONST. No functional change.
Diffstat (limited to 'sys/netgraph/ng_parse.c')
-rw-r--r-- | sys/netgraph/ng_parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netgraph/ng_parse.c b/sys/netgraph/ng_parse.c index 10398bc..b08cecd 100644 --- a/sys/netgraph/ng_parse.c +++ b/sys/netgraph/ng_parse.c @@ -1122,7 +1122,7 @@ ng_bytearray_parse(const struct ng_parse_type *type, struct ng_parse_type subtype; subtype = ng_parse_bytearray_subtype; - *(const void **)&subtype.private = type->info; + subtype.private = __DECONST(void *, type->info); return ng_array_parse(&subtype, s, off, start, buf, buflen); } } @@ -1134,7 +1134,7 @@ ng_bytearray_unparse(const struct ng_parse_type *type, struct ng_parse_type subtype; subtype = ng_parse_bytearray_subtype; - *(const void **)&subtype.private = type->info; + subtype.private = __DECONST(void *, type->info); return ng_array_unparse(&subtype, data, off, cbuf, cbuflen); } @@ -1145,7 +1145,7 @@ ng_bytearray_getDefault(const struct ng_parse_type *type, struct ng_parse_type subtype; subtype = ng_parse_bytearray_subtype; - *(const void **)&subtype.private = type->info; + subtype.private = __DECONST(void *, type->info); return ng_array_getDefault(&subtype, start, buf, buflen); } |