git: 950cf4a29a8e - main - netmap: pkt-gen: fix compilation issue

Vincenzo Maffione vmaffione at FreeBSD.org
Tue Jun 15 21:36:40 UTC 2021


The branch main has been updated by vmaffione:

URL: https://cgit.FreeBSD.org/src/commit/?id=950cf4a29a8e11962cf4672311f685af590c106e

commit 950cf4a29a8e11962cf4672311f685af590c106e
Author:     Vincenzo Maffione <vmaffione at FreeBSD.org>
AuthorDate: 2021-06-15 21:33:07 +0000
Commit:     Vincenzo Maffione <vmaffione at FreeBSD.org>
CommitDate: 2021-06-15 21:33:07 +0000

    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###>
---
 tools/tools/netmap/pkt-gen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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));


More information about the dev-commits-src-all mailing list