diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-04 21:03:56 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-04 21:03:56 +0200 |
commit | d2ea108728cc74c231c0b659709a39d887e16cc5 (patch) | |
tree | a24561a8fd79f812f5a6f85a3decc56b05241e1d /tests | |
parent | 81979fa80a814ece2c6a7f3f8a7a85822758cad5 (diff) |
osmux: remove timeval parameter from osmux_tx_sched
We can internal allocate this in the stack, no need to expose it to
the caller.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/osmo-pcap-test/osmux_test.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/osmo-pcap-test/osmux_test.c b/tests/osmo-pcap-test/osmux_test.c index f45f1fd..1c936b7 100644 --- a/tests/osmo-pcap-test/osmux_test.c +++ b/tests/osmo-pcap-test/osmux_test.c @@ -52,18 +52,15 @@ static void tx_cb(struct msgb *msg, void *data) static void deliver(struct msgb *batch_msg) { struct osmux_hdr *osmuxh; - struct timeval tv; struct llist_head list; - timerclear(&tv); - printf("sending batch (len=%d) [emulated]\n", batch_msg->len); /* This code below belongs to the osmux receiver */ while((osmuxh = osmux_xfrm_output_pull(batch_msg)) != NULL) { osmux_xfrm_output(osmuxh, &h_output, &list); - osmux_tx_sched(&list, &tv, tx_cb, NULL); + osmux_tx_sched(&list, tx_cb, NULL); } } |