projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bridge: Remove unused and write-only members of 'struct bridge'.
[openvswitch]
/
extras
/
ezio
/
ovs-switchui.c
diff --git
a/extras/ezio/ovs-switchui.c
b/extras/ezio/ovs-switchui.c
index 67f97476810398158bf112fd929856441e010b53..af74af56d5705f8006874f288c1b34e157c2342c 100644
(file)
--- a/
extras/ezio/ovs-switchui.c
+++ b/
extras/ezio/ovs-switchui.c
@@
-160,7
+160,8
@@
main(int argc, char *argv[])
"use --help for help");
}
"use --help for help");
}
- rconn = rconn_new(argv[0], 5, 5);
+ rconn = rconn_create(5, 5);
+ rconn_connect(rconn, argv[0], NULL);
die_if_already_running();
daemonize();
die_if_already_running();
daemonize();
@@
-242,7
+243,7
@@
main(int argc, char *argv[])
refresh();
poll_fd_wait(STDIN_FILENO, POLLIN);
refresh();
poll_fd_wait(STDIN_FILENO, POLLIN);
- poll_timer_wait
(timeout - time_msec()
);
+ poll_timer_wait
_until(timeout
);
poll_block();
} while (time_msec() < timeout);
age_messages();
poll_block();
} while (time_msec() < timeout);
age_messages();
@@
-868,7
+869,7
@@
fetch_status(struct rconn *rconn, struct dict *dict, long long timeout)
rconn_run_wait(rconn);
rconn_recv_wait(rconn);
rconn_run_wait(rconn);
rconn_recv_wait(rconn);
- poll_timer_wait
(timeout - time_msec()
);
+ poll_timer_wait
_until(timeout
);
poll_block();
}
}
poll_block();
}
}
@@
-1113,7
+1114,7
@@
do_show_data_rates(void *rates_)
rates->xid, &b);
rq->type = htons(OFPST_PORT);
rq->flags = htons(0);
rates->xid, &b);
rq->type = htons(OFPST_PORT);
rq->flags = htons(0);
- psr = ofbuf_put_uninit(b, sizeof *psr);
+ psr = of
p
buf_put_uninit(b, sizeof *psr);
memset(psr, 0, sizeof *psr);
psr->port_no = htons(OFPP_NONE);
update_openflow_length(b);
memset(psr, 0, sizeof *psr);
psr->port_no = htons(OFPP_NONE);
update_openflow_length(b);
@@
-1714,7
+1715,7
@@
menu_show(const struct menu *menu, int start, bool select)
refresh();
if (pos < min || pos > max) {
refresh();
if (pos < min || pos > max) {
- poll_timer_wait
(adjust - time_msec()
);
+ poll_timer_wait
_until(adjust
);
}
poll_fd_wait(STDIN_FILENO, POLLIN);
poll_block();
}
poll_fd_wait(STDIN_FILENO, POLLIN);
poll_block();
@@
-1946,7
+1947,7
@@
static void
block_until(long long timeout)
{
while (timeout > time_msec()) {
block_until(long long timeout)
{
while (timeout > time_msec()) {
- poll_timer_wait
(timeout - time_msec()
);
+ poll_timer_wait
_until(timeout
);
poll_block();
}
drain_keyboard_buffer();
poll_block();
}
drain_keyboard_buffer();