Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makemandb fix various typos in comments and makefs ...



details:   https://anonhg.NetBSD.org/src/rev/6a218602fed4
branches:  trunk
changeset: 372050:6a218602fed4
user:      andvar <andvar%NetBSD.org@localhost>
date:      Wed Oct 26 21:56:19 2022 +0000

description:
fix various typos in comments and makefs README file.

diffstat:

 sys/dev/spi/spiflash.c         |   6 +++---
 usr.sbin/makefs/README         |   6 +++---
 usr.sbin/makemandb/makemandb.c |  14 +++++++-------
 3 files changed, 13 insertions(+), 13 deletions(-)

diffs (111 lines):

diff -r c7e52516c99b -r 6a218602fed4 sys/dev/spi/spiflash.c
--- a/sys/dev/spi/spiflash.c    Wed Oct 26 21:18:49 2022 +0000
+++ b/sys/dev/spi/spiflash.c    Wed Oct 26 21:56:19 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spiflash.c,v 1.26 2022/05/08 06:38:58 skrll Exp $ */
+/* $NetBSD: spiflash.c,v 1.27 2022/10/26 21:56:19 andvar Exp $ */
 
 /*-
  * Copyright (c) 2006 Urbana-Champaign Independent Media Center.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spiflash.c,v 1.26 2022/05/08 06:38:58 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spiflash.c,v 1.27 2022/10/26 21:56:19 andvar Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -258,7 +258,7 @@
         * There are devices that could be used "in the raw" with a
         * NetBSD label, but then you get into devices that have other
         * kinds of data on them -- some have VxWorks data, some have
-        * RedBoot data, and some have other contraints -- for example
+        * RedBoot data, and some have other constraints -- for example
         * some devices might have a portion that is read-only,
         * whereas others might have a portion that is read-write.
         *
diff -r c7e52516c99b -r 6a218602fed4 usr.sbin/makefs/README
--- a/usr.sbin/makefs/README    Wed Oct 26 21:18:49 2022 +0000
+++ b/usr.sbin/makefs/README    Wed Oct 26 21:56:19 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.7 2015/01/12 19:50:47 christos Exp $
+$NetBSD: README,v 1.8 2022/10/26 21:56:19 andvar Exp $
 
 makefs - build a file system image from a directory tree
 
@@ -27,7 +27,7 @@
 
        ext2fs  Linux EXT2 file system
 
-Various file system independent parameters and contraints can be
+Various file system independent parameters and constraints can be
 specified, such as:
 
        - minimum file system size (in KB)
@@ -35,7 +35,7 @@
        - free inodes
        - free blocks (in KB)
        - mtree(8) specification file containing permissions and ownership
-         to use in image, overridding the settings in the directory tree
+         to use in image, overriding the settings in the directory tree
        - file containing list of files to specifically exclude or include
        - fnmatch(3) pattern of filenames to exclude or include
        - endianness of target file system
diff -r c7e52516c99b -r 6a218602fed4 usr.sbin/makemandb/makemandb.c
--- a/usr.sbin/makemandb/makemandb.c    Wed Oct 26 21:18:49 2022 +0000
+++ b/usr.sbin/makemandb/makemandb.c    Wed Oct 26 21:56:19 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makemandb.c,v 1.64 2022/09/11 20:32:37 gutteridge Exp $        */
+/*     $NetBSD: makemandb.c,v 1.65 2022/10/26 21:56:19 andvar Exp $    */
 /*
  * Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
  * Copyright (c) 2011 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: makemandb.c,v 1.64 2022/09/11 20:32:37 gutteridge Exp $");
+__RCSID("$NetBSD: makemandb.c,v 1.65 2022/10/26 21:56:19 andvar Exp $");
 
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -503,9 +503,9 @@
 }
 
 /* build_file_cache --
- *   This function generates an md5 hash of the file passed as its 2nd parameter
+ *   This function generates a md5 hash of the file passed as its 2nd parameter
  *   and stores it in a temporary table file_cache along with the full file path.
- *   This is done to support incremental updation of the database.
+ *   This is done to support incremental update of the database.
  *   The temporary table file_cache is dropped thereafter in the function
  *   update_db(), once the database has been updated.
  */
@@ -693,7 +693,7 @@
 }
 
 /* update_db --
- *     Does an incremental updation of the database by checking the file_cache.
+ *     Does an incremental update of the database by checking the file_cache.
  *     It parses and adds the pages which are present in file_cache,
  *     but not in the database.
  *     It also removes the pages which are present in the database,
@@ -1219,7 +1219,7 @@
  *  1. If the present section is NAME, then it will:
  *    (a) Extract the name of the page (in case of multiple comma separated
  *        names, it will pick up the first one).
- *    (b) Build a space spearated list of all the symlinks/hardlinks to
+ *    (b) Build a space separated list of all the symlinks/hardlinks to
  *        this page and store in the buffer 'links'. These are extracted from
  *        the comma separated list of names in the NAME section as well.
  *    (c) Move on to the one line description section, which is after the list
@@ -1690,7 +1690,7 @@
        sqlite3_finalize(stmt);
        if (rc == SQLITE_CONSTRAINT_UNIQUE) {
                /* The *most* probable reason for reaching here is that
-                * the UNIQUE contraint on the file column of the mandb_meta
+                * the UNIQUE constraint on the file column of the mandb_meta
                 * table was violated.
                 * This can happen when a file was updated/modified.
                 * To fix this we need to do two things:



Home | Main Index | Thread Index | Old Index