X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Frconn.c;h=771b3a30400812ccfeb9c23217be0c5332cf86b2;hb=67a4917b07031b387beafaedce413b4207214059;hp=2cbe43e98df6c3c7642471fd6e0f5d398661d4cd;hpb=4d678233e981fa319a338f6b0949e9dc625941a4;p=openvswitch diff --git a/lib/rconn.c b/lib/rconn.c index 2cbe43e9..771b3a30 100644 --- a/lib/rconn.c +++ b/lib/rconn.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks. + * Copyright (c) 2008, 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -313,13 +313,13 @@ rconn_destroy(struct rconn *rc) } static unsigned int -timeout_VOID(const struct rconn *rc UNUSED) +timeout_VOID(const struct rconn *rc OVS_UNUSED) { return UINT_MAX; } static void -run_VOID(struct rconn *rc UNUSED) +run_VOID(struct rconn *rc OVS_UNUSED) { /* Nothing to do. */ } @@ -547,7 +547,7 @@ rconn_send(struct rconn *rc, struct ofpbuf *b, if (rconn_is_connected(rc)) { COVERAGE_INC(rconn_queued); copy_to_monitor(rc, b); - b->private = counter; + b->private_p = counter; if (counter) { rconn_packet_counter_inc(counter); } @@ -845,7 +845,7 @@ try_send(struct rconn *rc) { int retval = 0; struct ofpbuf *next = rc->txq.head->next; - struct rconn_packet_counter *counter = rc->txq.head->private; + struct rconn_packet_counter *counter = rc->txq.head->private_p; retval = vconn_send(rc->vconn, rc->txq.head); if (retval) { if (retval != EAGAIN) { @@ -914,7 +914,7 @@ flush_queue(struct rconn *rc) } while (rc->txq.n > 0) { struct ofpbuf *b = queue_pop_head(&rc->txq); - struct rconn_packet_counter *counter = b->private; + struct rconn_packet_counter *counter = b->private_p; if (counter) { rconn_packet_counter_dec(counter); }