X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto-sflow.c;h=a3f4d810f1e8aa78ebcbb999cd6053d498a1b4b5;hb=be44585c21cc8dbe097a460a930696f0350dc12d;hp=5351b83787f9bd8c3d62499baf6506e610ecda94;hpb=81e2083fe6b7c16055f01c4b1e40f25867594bf6;p=openvswitch diff --git a/ofproto/ofproto-sflow.c b/ofproto/ofproto-sflow.c index 5351b837..a3f4d810 100644 --- a/ofproto/ofproto-sflow.c +++ b/ofproto/ofproto-sflow.c @@ -252,7 +252,7 @@ sflow_choose_agent_address(const char *agent_device, const char *control_ip, return false; success: - agent_addr->address.ip_v4.addr = in4.s_addr; + agent_addr->address.ip_v4.addr = (OVS_FORCE uint32_t) in4.s_addr; return true; }