diff options
author | dim <dim@FreeBSD.org> | 2015-01-30 21:59:53 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-01-30 21:59:53 +0000 |
commit | 4958b879806d266f0b030fc81c952d20e5abca51 (patch) | |
tree | 6b700c80c5f1d3381d9ede2214d914e28497141a /sys/netgraph | |
parent | 30a42c280eec3a4e23e3eab91b7e04cff697d312 (diff) | |
download | FreeBSD-src-4958b879806d266f0b030fc81c952d20e5abca51.zip FreeBSD-src-4958b879806d266f0b030fc81c952d20e5abca51.tar.gz |
Fix a bunch of -Wcast-qual warnings in netgraph's ng_parse.c, by using
__DECONST. No functional change.
MFC after: 3 days
Diffstat (limited to 'sys/netgraph')
-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); } |