diff options
author | Ethan Jackson <ethan@nicira.com> | 2011-11-17 15:26:00 -0800 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2011-11-17 15:32:57 -0800 |
commit | 6e9ca96c694dad9ca231fca5cbe44ce676e036e7 (patch) | |
tree | d427f2ab8b5eddebfd9a52a4418bfdf19bcbc977 /utilities | |
parent | 1ab91d1e9ea4e4f22386390b7c75a4d98c397602 (diff) |
ovs-dpctl: Suppress compiler warning on 64 bit linux.
utilities/ovs-dpctl.c:851:42: error: cast to pointer from integer
of different size [-Werror=int-to-pointer-cast]
Diffstat (limited to 'utilities')
-rw-r--r-- | utilities/ovs-dpctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utilities/ovs-dpctl.c b/utilities/ovs-dpctl.c index 5fa6fb7e..56d648c2 100644 --- 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]); } |