projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ab91d1
)
ovs-dpctl: Suppress compiler warning on 64 bit linux.
author
Ethan Jackson
<ethan@nicira.com>
Thu, 17 Nov 2011 23:26:00 +0000
(15:26 -0800)
committer
Ethan Jackson
<ethan@nicira.com>
Thu, 17 Nov 2011 23:32:57 +0000
(15:32 -0800)
utilities/ovs-dpctl.c:851:42: error: cast to pointer from integer
of different size [-Werror=int-to-pointer-cast]
utilities/ovs-dpctl.c
patch
|
blob
|
history
diff --git
a/utilities/ovs-dpctl.c
b/utilities/ovs-dpctl.c
index 5fa6fb7ebc97f76cfdcdb319fb89b14e4d611a3c..56d648c2823bb5068d85a1c8149a700c6a8c0a47 100644
(file)
--- a/
utilities/ovs-dpctl.c
+++ b/
utilities/ovs-dpctl.c
@@
-848,7
+848,8
@@
do_normalize_actions(int argc, char *argv[])
int n = -1;
if (sscanf(argv[i], "%15[^=]=%d%n", name, &number, &n) > 0 && n > 0) {
- shash_add(&port_names, name, (void *) number);
+ uintptr_t n = number;
+ shash_add(&port_names, name, (void *) n);
} else {
ovs_fatal(0, "%s: expected NAME=NUMBER", argv[i]);
}