projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: New macro CONST_CAST.
[openvswitch]
/
ofproto
/
connmgr.c
diff --git
a/ofproto/connmgr.c
b/ofproto/connmgr.c
index 5ce77c04c579e97e129c77f4ce3a368cce513f9d..d436f7795dc9cc18221ed73ced89171be5d11a4b 100644
(file)
--- a/
ofproto/connmgr.c
+++ b/
ofproto/connmgr.c
@@
-477,7
+477,7
@@
connmgr_free_controller_info(struct shash *info)
SHASH_FOR_EACH (node, info) {
struct ofproto_controller_info *cinfo = node->data;
while (cinfo->pairs.n) {
- free(
(char *) cinfo->pairs.values[--cinfo->pairs.n]
);
+ free(
CONST_CAST(char *, cinfo->pairs.values[--cinfo->pairs.n])
);
}
free(cinfo);
}