Source-Changes-HG archive

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

[src/trunk]: src fix various typos in comments.



details:   https://anonhg.NetBSD.org/src/rev/6ad4c1a9478c
branches:  trunk
changeset: 366040:6ad4c1a9478c
user:      andvar <andvar%NetBSD.org@localhost>
date:      Wed May 11 14:58:00 2022 +0000

description:
fix various typos in comments.

diffstat:

 lib/libterminfo/term.h                    |   8 ++++----
 sys/arch/aarch64/aarch64/fault.c          |   6 +++---
 sys/arch/i386/stand/bootxx/pbr.S          |   6 +++---
 sys/arch/powerpc/include/booke/etsecreg.h |  16 ++++++++--------
 sys/arch/sparc64/sparc64/db_interface.c   |   6 +++---
 sys/dev/ic/dwc_gmac_reg.h                 |   6 +++---
 sys/net/if.c                              |   6 +++---
 usr.sbin/moused/moused.c                  |   6 +++---
 8 files changed, 30 insertions(+), 30 deletions(-)

diffs (255 lines):

diff -r adc2ad8cc5ab -r 6ad4c1a9478c lib/libterminfo/term.h
--- a/lib/libterminfo/term.h    Wed May 11 13:58:43 2022 +0000
+++ b/lib/libterminfo/term.h    Wed May 11 14:58:00 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: term.h,v 1.25 2021/12/10 20:36:02 andvar Exp $ */
+/* $NetBSD: term.h,v 1.26 2022/05/11 14:58:00 andvar Exp $ */
 
 /*
  * Copyright (c) 2009, 2010, 2011, 2013, 2020 The NetBSD Foundation, Inc.
@@ -319,7 +319,7 @@
  * max_attributes: Maximum combined video attributes terminal can display
  * magic_cookie_glitch: Number of blank characters left by smso or rmso
  * max_colors: Maximum number of colours on the screen
- * max_micro_address: Maximum value in micro_..._addresss
+ * max_micro_address: Maximum value in micro_..._address
  * max_micro_jump: Maximum value in parm_..._micro
  * max_pairs: Maximum number of colour-pairs on the screen
  * maximum_windows: Maximum number of definable windows
@@ -1611,7 +1611,7 @@
  * enter_top_hl_mode: Turn on top highlight mode
  * enter_underline_mode: Start underscore mode
  * enter_upward_mode: Enable upward carriage motion
- * enter_vertical_hl_mode: Turn on verticle highlight mode
+ * enter_vertical_hl_mode: Turn on vertical highlight mode
  * enter_xon_mode: Turn on xon/xoff handshaking
  * erase_chars: Erase #1 characters
  * exit_alt_charset_mode: End alternate character set
@@ -1776,7 +1776,7 @@
  * key_select: sent by select key
  * key_send: sent by shifted end key
  * key_seol: sent by shifted clear-line key
- * key_sexit: sent by shited exit key
+ * key_sexit: sent by shifted exit key
  * key_sf: sent by scroll-forward/down key
  * key_sfind: sent by shifted find key
  * key_shelp: sent by shifted help key
diff -r adc2ad8cc5ab -r 6ad4c1a9478c sys/arch/aarch64/aarch64/fault.c
--- a/sys/arch/aarch64/aarch64/fault.c  Wed May 11 13:58:43 2022 +0000
+++ b/sys/arch/aarch64/aarch64/fault.c  Wed May 11 14:58:00 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fault.c,v 1.23 2022/04/30 07:07:01 skrll Exp $ */
+/*     $NetBSD: fault.c,v 1.24 2022/05/11 14:58:00 andvar Exp $        */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.23 2022/04/30 07:07:01 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.24 2022/05/11 14:58:00 andvar Exp $");
 
 #include "opt_compat_netbsd32.h"
 #include "opt_cpuoptions.h"
@@ -161,7 +161,7 @@
        p = l->l_proc;
        va = trunc_page((vaddr_t)tf->tf_far);
 
-       /* eliminate addresss tag if ECR_EL1.TBI[01] is enabled */
+       /* eliminate address tag if ECR_EL1.TBI[01] is enabled */
        va = aarch64_untag_address(va);
 
        if ((VM_MIN_KERNEL_ADDRESS <= va) && (va < VM_MAX_KERNEL_ADDRESS)) {
diff -r adc2ad8cc5ab -r 6ad4c1a9478c sys/arch/i386/stand/bootxx/pbr.S
--- a/sys/arch/i386/stand/bootxx/pbr.S  Wed May 11 13:58:43 2022 +0000
+++ b/sys/arch/i386/stand/bootxx/pbr.S  Wed May 11 14:58:00 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pbr.S,v 1.22 2016/01/04 18:17:31 christos Exp $        */
+/*     $NetBSD: pbr.S,v 1.23 2022/05/11 14:58:00 andvar Exp $  */
 
 /*-
  * Copyright (c) 2003,2004 The NetBSD Foundation, Inc.
@@ -87,7 +87,7 @@
 #endif
 
 /*
- * This code is loaded to addresss 0:7c00 by either the system BIOS
+ * This code is loaded to address 0:7c00 by either the system BIOS
  * (for a floppy) or the mbr boot code.  Since the boot program will
  * be loaded to address 1000:0, we don't need to relocate ourselves
  * and can load the subsequent blocks (that load boot) to an address
@@ -274,7 +274,7 @@
        and     $0x3f, %dx
        add     %dx, %ax
        dec     %ax
-       pop     %dx                             /* recover drive nmber */
+       pop     %dx                             /* recover drive number */
 
        cmp     %bp, %ax
        je      read_chs
diff -r adc2ad8cc5ab -r 6ad4c1a9478c sys/arch/powerpc/include/booke/etsecreg.h
--- a/sys/arch/powerpc/include/booke/etsecreg.h Wed May 11 13:58:43 2022 +0000
+++ b/sys/arch/powerpc/include/booke/etsecreg.h Wed May 11 14:58:00 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: etsecreg.h,v 1.9 2021/09/19 10:34:09 andvar Exp $      */
+/*     $NetBSD: etsecreg.h,v 1.10 2022/05/11 14:58:00 andvar Exp $     */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -68,7 +68,7 @@
 #define        TXFCB_UDP       0x0800  /* UDP at layer 4 */
 #define        TXFCB_CIP       0x0400  /* Checksum IP header enable */
 #define        TXFCB_CTU       0x0200  /* Checksum TCP or UCP header enable */
-#define        TXFCB_NPH       0x0100  /* No std Pseudo-Header checksm, use phcs */
+#define        TXFCB_NPH       0x0100  /* No std Pseudo-Header checksum, use phcs */
 
 struct txfcb {
        uint16_t txfcb_flags;
@@ -84,11 +84,11 @@
 #define        RXBD_I          0x1000          /* Interrupt IEVENT[RXB|RXF] */
 #define        RXBD_L          0x0800          /* Last in frame */
 #define        RXBD_F          0x0400          /* First in frame */
-#define        RXBD_M          0x0100          /* Miss (promiscious match) */
+#define        RXBD_M          0x0100          /* Miss (promiscuous match) */
 #define        RXBD_BC         0x0080          /* BroadCast match */
 #define        RXBD_MC         0x0040          /* MultiCast match */
 #define        RXBD_LG         0x0020          /* rx LarGe frame error */
-#define        RXBD_NO         0x0010          /* Non-octect aligned frame error */
+#define        RXBD_NO         0x0010          /* Non-octet aligned frame error */
 #define        RXBD_SH         0x0008          /* SHort frame */
 #define        RXBD_CR         0x0004          /* rx CRc error */
 #define        RXBD_OV         0x0002          /* OVerrun error */
@@ -142,8 +142,8 @@
 #define        IEVENT_RXB      __PPCBIT(16)    /* receive buffer */
 #define        IEVENT_TWK      __PPCBIT(19)    /* timer wakeup */
 #define        IEVENT_MAG      __PPCBIT(20)    /* magic packet detected */
-#define        IEVENT_MMRD     __PPCBIT(21)    /* MMI manangement read complete */
-#define        IEVENT_MMWR     __PPCBIT(22)    /* MMI manangement write complete */
+#define        IEVENT_MMRD     __PPCBIT(21)    /* MMI management read complete */
+#define        IEVENT_MMWR     __PPCBIT(22)    /* MMI management write complete */
 #define        IEVENT_GRSC     __PPCBIT(23)    /* graceful receive stop complete */
 #define        IEVENT_RXF      __PPCBIT(24)    /* receive frame interrupt */
 #define        IEVENT_FGPI     __PPCBIT(27)    /* filer generated general purpose interrupt */
@@ -395,7 +395,7 @@
 #define RQFPR_PID1_IP4 __PPCBIT(22) /* IPv4 header */
 #define RQFPR_PID1_IP6 __PPCBIT(23) /* IPv6 header */
 #define RQFPR_PID1_ICC __PPCBIT(24) /* IPv4 header checksum */
-#define RQFPR_PID1_ICV __PPCBIT(25) /* IPv4 header checksum was verifed correct */
+#define RQFPR_PID1_ICV __PPCBIT(25) /* IPv4 header checksum was verified correct */
 #define RQFPR_PID1_TCP __PPCBIT(26) /* TCP header */
 #define RQFPR_PID1_UDP __PPCBIT(27) /* UDP header */
 #define RQFPR_PID1_PER __PPCBIT(30) /* parse error */
@@ -459,7 +459,7 @@
 #define MAXFRM         0x510 /* Maximum frame length */
 #define MIIMCFG                0x520 /* MII management configuration */
 #define        MIIMCFG_RESET   __PPCBIT(0) /* Reset management */
-#define        MIIMCFG_NOPRE   __PPCBIT(27) /* Preamble suppess */
+#define        MIIMCFG_NOPRE   __PPCBIT(27) /* Preamble suppress */
 #define MIIMCOM                0x524 /* MII management command */
 #define        MIIMCOM_SCAN    __PPCBIT(30)
 #define        MIIMCOM_READ    __PPCBIT(31)
diff -r adc2ad8cc5ab -r 6ad4c1a9478c sys/arch/sparc64/sparc64/db_interface.c
--- a/sys/arch/sparc64/sparc64/db_interface.c   Wed May 11 13:58:43 2022 +0000
+++ b/sys/arch/sparc64/sparc64/db_interface.c   Wed May 11 14:58:00 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.136 2021/02/23 07:13:53 mrg Exp $ */
+/*     $NetBSD: db_interface.c,v 1.137 2022/05/11 14:58:00 andvar Exp $ */
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath.  All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.136 2021/02/23 07:13:53 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.137 2022/05/11 14:58:00 andvar Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -891,7 +891,7 @@
 }
 
 /*
- * Use physical or virtul watchpoint registers -- ugh
+ * Use physical or virtual watchpoint registers -- ugh
  *
  * UltraSPARC I and II have both a virtual and physical
  * watchpoint register.  They are controlled by the LSU
diff -r adc2ad8cc5ab -r 6ad4c1a9478c sys/dev/ic/dwc_gmac_reg.h
--- a/sys/dev/ic/dwc_gmac_reg.h Wed May 11 13:58:43 2022 +0000
+++ b/sys/dev/ic/dwc_gmac_reg.h Wed May 11 14:58:00 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_gmac_reg.h,v 1.20 2020/05/17 21:50:47 chs Exp $ */
+/* $NetBSD: dwc_gmac_reg.h,v 1.21 2022/05/11 14:58:01 andvar Exp $ */
 
 /*-
  * Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -62,11 +62,11 @@
 #define        AWIN_GMAC_MAC_FFILT_SAF         __BIT(9)  /* source address filter */
 #define        AWIN_GMAC_MAC_FFILT_SAIF        __BIT(8)  /* inverse filtering */
 #define        AWIN_GMAC_MAC_FFILT_DBF         __BIT(5)  /* disable broadcast frames */
-#define        AWIN_GMAC_MAC_FFILT_PM          __BIT(4)  /* promiscious multicast */
+#define        AWIN_GMAC_MAC_FFILT_PM          __BIT(4)  /* promiscuous multicast */
 #define        AWIN_GMAC_MAC_FFILT_DAIF        __BIT(3)  /* DA inverse filtering */
 #define        AWIN_GMAC_MAC_FFILT_HMC         __BIT(2)  /* multicast hash compare */
 #define        AWIN_GMAC_MAC_FFILT_HUC         __BIT(1)  /* unicast hash compare */
-#define        AWIN_GMAC_MAC_FFILT_PR          __BIT(0)  /* promiscious mode */
+#define        AWIN_GMAC_MAC_FFILT_PR          __BIT(0)  /* promiscuous mode */
 
 #define        AWIN_GMAC_MAC_INT_LPI           __BIT(10)
 #define        AWIN_GMAC_MAC_INT_TSI           __BIT(9)
diff -r adc2ad8cc5ab -r 6ad4c1a9478c sys/net/if.c
--- a/sys/net/if.c      Wed May 11 13:58:43 2022 +0000
+++ b/sys/net/if.c      Wed May 11 14:58:00 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.503 2022/04/09 23:38:33 riastradh Exp $       */
+/*     $NetBSD: if.c,v 1.504 2022/05/11 14:58:01 andvar Exp $  */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.503 2022/04/09 23:38:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.504 2022/05/11 14:58:01 andvar Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -2090,7 +2090,7 @@
 }
 
 /*
- * Find the interface of the addresss.
+ * Find the interface of the address.
  */
 struct ifaddr *
 ifa_ifwithladdr(const struct sockaddr *addr)
diff -r adc2ad8cc5ab -r 6ad4c1a9478c usr.sbin/moused/moused.c
--- a/usr.sbin/moused/moused.c  Wed May 11 13:58:43 2022 +0000
+++ b/usr.sbin/moused/moused.c  Wed May 11 14:58:00 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: moused.c,v 1.28 2022/01/21 21:39:32 andvar Exp $ */
+/* $NetBSD: moused.c,v 1.29 2022/05/11 14:58:01 andvar Exp $ */
 /**
  ** Copyright (c) 1995 Michael Smith, All rights reserved.
  **
@@ -48,7 +48,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: moused.c,v 1.28 2022/01/21 21:39:32 andvar Exp $");
+__RCSID("$NetBSD: moused.c,v 1.29 2022/05/11 14:58:01 andvar Exp $");
 #endif /* not lint */
 
 #include <ctype.h>
@@ -1522,7 +1522,7 @@
      *  b) invalid (0x80 == -128 and that might be wrong for MouseSystems)
      *  c) bad header-package
      *
-     * NOTE: b) is a voilation of the MouseSystems-Protocol, since values of
+     * NOTE: b) is a violation of the MouseSystems-Protocol, since values of
      *       -128 are allowed, but since they are very seldom we can easily
      *       use them as package-header with no button pressed.
      * NOTE/2: On a PS/2 mouse any byte is valid as a data byte. Furthermore,



Home | Main Index | Thread Index | Old Index