diff --git a/lib/netdev.c b/lib/netdev.c index 20f38be..12d3ab4 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -851,7 +851,7 @@ netdev_recv(struct netdev *netdev, struct ofpbuf *buffer) { ssize_t n_bytes; struct sockaddr_ll sll; - int sll_len; + socklen_t sll_len; assert(buffer->size == 0); assert(ofpbuf_tailroom(buffer) >= ETH_TOTAL_MIN); diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 04c65e1..dc0e2aa 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -1309,7 +1309,7 @@ ofp_echo(struct ds *string, const void *oh, size_t len, int verbosity) } static void -ofp_vendor(struct ds *string, const void *oh, size_t len, int verbosity) +ofp_vendor(struct ds *string UNUSED, const void *oh, size_t len UNUSED, int verbosity UNUSED) { const struct ofp_vendor_header *vh = oh; @@ -1344,7 +1344,7 @@ show_queue_props(struct ds *string, const struct ofp_packet_queue *queue_desc) static void show_queue_get_config_reply(struct ds *string, const void *oh, - size_t len, int verbosity) + size_t len UNUSED, int verbosity UNUSED) { const struct ofp_queue_get_config_reply *reply; const struct ofp_packet_queue *queue_desc; diff --git a/udatapath/dp_act.c b/udatapath/dp_act.c index 28e9590..d48beb1 100644 --- a/udatapath/dp_act.c +++ b/udatapath/dp_act.c @@ -57,7 +57,7 @@ validate_output(struct datapath *dp UNUSED, const struct sw_flow_key *key, } static uint16_t -validate_queue(struct datapath *dp UNUSED, const struct sw_flow_key *key, +validate_queue(struct datapath *dp UNUSED, const struct sw_flow_key *key UNUSED, const struct ofp_action_header *ah) { struct ofp_action_enqueue *ea = (struct ofp_action_enqueue *)ah; @@ -372,7 +372,7 @@ validate_ofpat(struct datapath *dp, const struct sw_flow_key *key, /* Validate vendor-defined actions. Either returns ACT_VALIDATION_OK * or an OFPET_BAD_ACTION error code. */ static uint16_t -validate_vendor(struct datapath *dp, const struct sw_flow_key *key, +validate_vendor(struct datapath *dp UNUSED, const struct sw_flow_key *key UNUSED, const struct ofp_action_header *ah, uint16_t len) { struct ofp_action_vendor_header *avh; @@ -454,7 +454,7 @@ execute_ofpat(struct ofpbuf *buffer, struct sw_flow_key *key, /* Execute a vendor-defined action against 'buffer'. */ static void -execute_vendor(struct ofpbuf *buffer, const struct sw_flow_key *key, +execute_vendor(struct ofpbuf *buffer UNUSED, const struct sw_flow_key *key UNUSED, const struct ofp_action_header *ah) { struct ofp_action_vendor_header *avh