aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVincenzo Maffione <vmaffione@FreeBSD.org>2021-06-15 21:33:07 +0000
committerVincenzo Maffione <vmaffione@FreeBSD.org>2021-06-15 21:33:07 +0000
commit950cf4a29a8e11962cf4672311f685af590c106e (patch)
treeccce21bffbeb8da6510f13575927cc0c85d26747 /tools
parentd63e6bc256016c7f5223ff5541671e5a96c4c6c4 (diff)
downloadsrc-950cf4a29a8e11962cf4672311f685af590c106e.tar.gz
src-950cf4a29a8e11962cf4672311f685af590c106e.zip
netmap: pkt-gen: fix compilation issue
Remove stray characters preventing the source code from being compiled. Fixes: 20d684ecc9d7 ("pkt-gen: Allow limiting received packets"). Submitted by: ar_semihalf.com Reviewed by: vmaffione Differential Revision: <https://reviews.freebsd.org/D###>
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/netmap/pkt-gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/netmap/pkt-gen.c b/tools/tools/netmap/pkt-gen.c
index b24915e150a5..f43469cf7ad6 100644
--- a/tools/tools/netmap/pkt-gen.c
+++ b/tools/tools/netmap/pkt-gen.c
@@ -1844,7 +1844,7 @@ receiver_body(void *data)
/* main loop, exit after 1s silence */
clock_gettime(CLOCK_REALTIME_PRECISE, &targ->tic);
if (targ->g->dev_type == DEV_TAP) {
- while (!targ->cancel && (n == 0 || targ->ctr.pkts < n)) {) {
+ while (!targ->cancel && (n == 0 || targ->ctr.pkts < n)) {
char buf[MAX_BODYSIZE];
/* XXX should we poll ? */
i = read(targ->g->main_fd, buf, sizeof(buf));