From: Ethan Jackson Date: Thu, 17 Nov 2011 23:26:00 +0000 (-0800) Subject: ovs-dpctl: Suppress compiler warning on 64 bit linux. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e9ca96c694dad9ca231fca5cbe44ce676e036e7;p=openvswitch 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] --- 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]); }