git: c9d93c7e1144 - stable/12 - tools: Remove a double words

From: Gordon Bergling <gbe_at_FreeBSD.org>
Date: Tue, 13 Sep 2022 05:27:32 UTC
The branch stable/12 has been updated by gbe (doc committer):

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

commit c9d93c7e11441808269d4d6c7be14f6ad9934e97
Author:     Gordon Bergling <gbe@FreeBSD.org>
AuthorDate: 2022-09-10 10:54:33 +0000
Commit:     Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2022-09-13 05:25:52 +0000

    tools: Remove a double words
    
     - s/to to/to/
     - s/to to/to do/ in an error message
    
    (cherry picked from commit 08cb3ac76c6e680316b561fda196e517e7bd1506)
---
 tools/tools/netmap/pkt-gen.c           | 2 +-
 tools/tools/netrate/tcpp/tcpp_server.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/tools/netmap/pkt-gen.c b/tools/tools/netmap/pkt-gen.c
index ebc0ac977219..81e690235ff1 100644
--- a/tools/tools/netmap/pkt-gen.c
+++ b/tools/tools/netmap/pkt-gen.c
@@ -2791,7 +2791,7 @@ tap_alloc(char *dev)
 
 	/* try to create the device */
 	if( (err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ) {
-		D("failed to to a TUNSETIFF: %s", strerror(errno));
+		D("failed to do a TUNSETIFF: %s", strerror(errno));
 		close(fd);
 		return err;
 	}
diff --git a/tools/tools/netrate/tcpp/tcpp_server.c b/tools/tools/netrate/tcpp/tcpp_server.c
index 0a79fbba5e30..eca2c3d469db 100644
--- a/tools/tools/netrate/tcpp/tcpp_server.c
+++ b/tools/tools/netrate/tcpp/tcpp_server.c
@@ -54,7 +54,7 @@
  * Server side -- create a pool of processes, each listening on its own TCP
  * port number for new connections.  The first 8 bytes of each connection
  * will be a network byte order length, then there will be that number of
- * bytes of data.  We use non-blocking sockets with kqueue to to avoid the
+ * bytes of data.  We use non-blocking sockets with kqueue to avoid the
  * overhead of threading or more than one process per processor, which makes
  * things a bit awkward when dealing with data we care about.  As such, we
  * read into a small character buffer which we then convert to a length once