projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Python binaries to write comment in db show-log while updating database
[openvswitch]
/
utilities
/
ovs-dpctl.c
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) {
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]);
}
} else {
ovs_fatal(0, "%s: expected NAME=NUMBER", argv[i]);
}