Signed-off-by: Elyes HAOUAS <[email protected]>
---
 usr.bin/rsync/copy.c     | 2 +-
 usr.bin/rsync/fargs.c    | 2 +-
 usr.bin/rsync/flist.c    | 2 +-
 usr.bin/rsync/io.c       | 6 +++---
 usr.bin/rsync/rmatch.c   | 4 ++--
 usr.bin/rsync/rsync.5    | 2 +-
 usr.bin/rsync/socket.c   | 2 +-
 usr.bin/rsync/uploader.c | 2 +-
 8 files changed, 11 insertions(+), 11 deletions(-)

diff --git usr.bin/rsync/copy.c usr.bin/rsync/copy.c
index f133508cda0..325561bc62a 100644
--- usr.bin/rsync/copy.c
+++ usr.bin/rsync/copy.c
@@ -25,7 +25,7 @@
 
 /*
  * Return true if all bytes in buffer are zero.
- * A buffer of zero lenght is also considered a zero buffer.
+ * A buffer of zero length is also considered a zero buffer.
  */
 static int
 iszero(const void *b, size_t len)
diff --git usr.bin/rsync/fargs.c usr.bin/rsync/fargs.c
index a69955c4332..a8a33565128 100644
--- usr.bin/rsync/fargs.c
+++ usr.bin/rsync/fargs.c
@@ -71,7 +71,7 @@ fargs_cmdline(struct sess *sess, const struct fargs *f, 
size_t *skip)
 
                        while ((arg = strsep(&ap, " \t")) != NULL) {
                                if (arg[0] == '\0') {
-                                       ap++;   /* skip seperators */
+                                       ap++;   /* skip separators */
                                        continue;
                                }
 
diff --git usr.bin/rsync/flist.c usr.bin/rsync/flist.c
index ed3ccb6f470..d8cb15afc82 100644
--- usr.bin/rsync/flist.c
+++ usr.bin/rsync/flist.c
@@ -34,7 +34,7 @@
 /*
  * We allocate our file list in chunk sizes so as not to do it one by
  * one.
- * Preferrably we get one or two allocation.
+ * Preferably we get one or two allocation.
  */
 #define        FLIST_CHUNK_SIZE (1024)
 
diff --git usr.bin/rsync/io.c usr.bin/rsync/io.c
index ea35bdb295f..54668962343 100644
--- usr.bin/rsync/io.c
+++ usr.bin/rsync/io.c
@@ -164,7 +164,7 @@ io_write_buf(struct sess *sess, int fd, const void *buf, 
size_t sz)
 
 /*
  * Write "line" (NUL-terminated) followed by a newline.
- * Returns zero on failure, non-zero on succcess.
+ * Returns zero on failure, non-zero on success.
  */
 int
 io_write_line(struct sess *sess, int fd, const char *line)
@@ -468,7 +468,7 @@ io_buffer_buf(void *buf, size_t *bufpos, size_t buflen, 
const void *val,
 }
 
 /*
- * Like io_buffer_buf(), but also accomodating for multiplexing codes.
+ * Like io_buffer_buf(), but also accommodating for multiplexing codes.
  * This should NEVER be passed to io_write_buf(), but instead passed
  * directly to a write operation.
  */
@@ -502,7 +502,7 @@ io_lowbuffer_buf(struct sess *sess, void *buf,
  *   io_lowbuffer_alloc(... sizeof(int32_t));
  *   io_lowbuffer_int(...);
  * And not sizeof(int32_t) * 2 or whatnot.
- * Returns zero on failure, non-zero on succes.
+ * Returns zero on failure, non-zero on success.
  */
 int
 io_lowbuffer_alloc(struct sess *sess, void **buf,
diff --git usr.bin/rsync/rmatch.c usr.bin/rsync/rmatch.c
index 6b0e678152a..51e15fd96b3 100644
--- usr.bin/rsync/rmatch.c
+++ usr.bin/rsync/rmatch.c
@@ -126,7 +126,7 @@ rangematch(const char **pp, char test)
                        case RANGE_NOMATCH:
                                continue;
                        default:
-                               /* invalid character class, treat litterally. */
+                               /* invalid character class, treat literally. */
                                break;
                        }
                }
@@ -156,7 +156,7 @@ rangematch(const char **pp, char test)
 
 /*
  * Single character match, advances pattern as much as needed.
- * Return 0 on match and !0 (aka 1) on missmatch.
+ * Return 0 on match and !0 (aka 1) on mismatch.
  * When matched pp is advanced to the end of the pattern matched.
  */
 static int
diff --git usr.bin/rsync/rsync.5 usr.bin/rsync/rsync.5
index c715a2e298e..0f6924f856d 100644
--- usr.bin/rsync/rsync.5
+++ usr.bin/rsync/rsync.5
@@ -391,7 +391,7 @@ data chunk (bytes)
 block index subsequent to chunk or zero for finished (integer)
 .El
 .Pp
-Following this sequence, the sender sends the followng:
+Following this sequence, the sender sends the following:
 .Pp
 .Bl -enum -compact
 .It
diff --git usr.bin/rsync/socket.c usr.bin/rsync/socket.c
index 953b229afbc..2b64428fc9a 100644
--- usr.bin/rsync/socket.c
+++ usr.bin/rsync/socket.c
@@ -46,7 +46,7 @@ struct        source {
 };
 
 /*
- * Try to bind to a local IP address matching the addres family passed.
+ * Try to bind to a local IP address matching the address family passed.
  * Return -1 on failure to bind to any address, 0 on success.
  */
 static int
diff --git usr.bin/rsync/uploader.c usr.bin/rsync/uploader.c
index 32cf4ec0ff6..3e89a1b8104 100644
--- usr.bin/rsync/uploader.c
+++ usr.bin/rsync/uploader.c
@@ -1059,7 +1059,7 @@ rsync_uploader(struct upload *u, int *fileinfd,
        }
        assert(pos == u->bufsz);
 
-       /* Reenable the output poller and clean up. */
+       /* Re-enable the output poller and clean up. */
 
        *fileoutfd = u->fdout;
        free(blk.blks);
-- 
2.33.0

Reply via email to