port-array: Add port_array_delete() function.
authorBen Pfaff <blp@nicira.com>
Thu, 3 Jun 2010 17:17:51 +0000 (10:17 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 17 Jun 2010 17:30:19 +0000 (10:30 -0700)
commite3648418c4bf028e6bca38bcbfc5a5ed493447fb
tree7dd179a64f54049d22fef0fd3a133874b72c36ce
parentff4ed3c9a1911821f16b49b5ebb5b64a9c5d907c
port-array: Add port_array_delete() function.

port_array_delete(pa, idx) is equivalent to port_array_set(pa, idx, NULL),
but it never allocates memory and avoids conditionals.
lib/port-array.c
lib/port-array.h
ofproto/ofproto-sflow.c
ofproto/ofproto.c
ofproto/pinsched.c