From 915340d5d241e5f0a8d9654a50b2a9f091efe4a1 Mon Sep 17 00:00:00 2001 From: andvar Date: Mon, 15 Jan 2024 19:44:06 +0000 Subject: [PATCH] Fix few typos in comments, mainly s/argment/argument/. --- sys/arch/emips/emips/machdep.c | 6 +++--- sys/arch/evbppc/obs405/dev/obsled.c | 6 +++--- sys/arch/luna68k/luna68k/machdep.c | 6 +++--- sys/arch/pmax/pmax/machdep.c | 6 +++--- sys/netinet/sctp_indata.c | 6 +++--- usr.sbin/altq/libaltq/parser.c | 4 ++-- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/sys/arch/emips/emips/machdep.c b/sys/arch/emips/emips/machdep.c index 61f38fd2c7b1..26b1682f84fb 100644 --- a/sys/arch/emips/emips/machdep.c +++ b/sys/arch/emips/emips/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.18 2023/09/01 06:16:45 andvar Exp $ */ +/* $NetBSD: machdep.c,v 1.19 2024/01/15 19:44:06 andvar Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -39,7 +39,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.18 2023/09/01 06:16:45 andvar Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.19 2024/01/15 19:44:06 andvar Exp $"); #include "opt_ddb.h" @@ -133,7 +133,7 @@ extern const struct callback callvec; /* * Do all the stuff that locore normally does before calling main(). - * The first 4 argments are passed by PROM monitor, and remaining two + * The first 4 arguments are passed by PROM monitor, and remaining two * are built on temporary stack by our boot loader. */ void diff --git a/sys/arch/evbppc/obs405/dev/obsled.c b/sys/arch/evbppc/obs405/dev/obsled.c index 719e57af2ad1..4ef6278cdd8f 100644 --- a/sys/arch/evbppc/obs405/dev/obsled.c +++ b/sys/arch/evbppc/obs405/dev/obsled.c @@ -1,4 +1,4 @@ -/* $NetBSD: obsled.c,v 1.10 2014/02/25 18:30:08 pooka Exp $ */ +/* $NetBSD: obsled.c,v 1.11 2024/01/15 19:44:07 andvar Exp $ */ /* * Copyright (c) 2004 Shigeyuki Fukushima. @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: obsled.c,v 1.10 2014/02/25 18:30:08 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: obsled.c,v 1.11 2024/01/15 19:44:07 andvar Exp $"); #include #include @@ -165,7 +165,7 @@ obsled_set_state(struct obsled_softc *sc) /* * Setting LED interface for inside kernel. - * Argumnt `led' is 3-bit LED state (led=0-7/ON=1/OFF=0). + * Argument `led' is 3-bit LED state (led=0-7/ON=1/OFF=0). */ void obs266_led_set(int led) diff --git a/sys/arch/luna68k/luna68k/machdep.c b/sys/arch/luna68k/luna68k/machdep.c index 70199cc78069..85a36853447f 100644 --- a/sys/arch/luna68k/luna68k/machdep.c +++ b/sys/arch/luna68k/luna68k/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.110 2023/12/20 00:40:43 thorpej Exp $ */ +/* $NetBSD: machdep.c,v 1.111 2024/01/15 19:44:07 andvar Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.110 2023/12/20 00:40:43 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.111 2024/01/15 19:44:07 andvar Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -222,7 +222,7 @@ luna68k_init(void) * * 'bootarg' on LUNA-II has "" only. * - * NetBSD/luna68k cares only the first argment; any of "sda". + * NetBSD/luna68k cares only the first argument; any of "sda". */ bootarg[63] = '\0'; for (cp = bootarg; *cp != '\0'; cp++) { diff --git a/sys/arch/pmax/pmax/machdep.c b/sys/arch/pmax/pmax/machdep.c index 4bb8d30fa025..bfe9006bcf77 100644 --- a/sys/arch/pmax/pmax/machdep.c +++ b/sys/arch/pmax/pmax/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.254 2020/09/28 01:20:29 simonb Exp $ */ +/* $NetBSD: machdep.c,v 1.255 2024/01/15 19:44:07 andvar Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -39,7 +39,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.254 2020/09/28 01:20:29 simonb Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.255 2024/01/15 19:44:07 andvar Exp $"); #include "opt_ddb.h" #include "opt_modular.h" @@ -128,7 +128,7 @@ extern struct consdev promcd; /* XXX */ /* * Do all the stuff that locore normally does before calling main(). - * The first 4 argments are passed by PROM monitor, and remaining two + * The first 4 arguments are passed by PROM monitor, and remaining two * are built on temporary stack by our boot loader (or in reg if N32/N64). */ void diff --git a/sys/netinet/sctp_indata.c b/sys/netinet/sctp_indata.c index dd8f4c48de26..afbc9d2791fa 100644 --- a/sys/netinet/sctp_indata.c +++ b/sys/netinet/sctp_indata.c @@ -1,4 +1,4 @@ -/* $NetBSD: sctp_indata.c,v 1.13 2023/04/05 21:53:56 andvar Exp $ */ +/* $NetBSD: sctp_indata.c,v 1.14 2024/01/15 19:44:07 andvar Exp $ */ /* $KAME: sctp_indata.c,v 1.36 2005/03/06 16:04:17 itojun Exp $ */ /* @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sctp_indata.c,v 1.13 2023/04/05 21:53:56 andvar Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sctp_indata.c,v 1.14 2024/01/15 19:44:07 andvar Exp $"); #ifdef _KERNEL_OPT #include "opt_ipsec.h" @@ -2732,7 +2732,7 @@ sctp_handle_segments(struct sctp_tcb *stcb, struct sctp_association *asoc, for (i = 0; i < num_seg; i++) { frag_strt = ntohs(frag->start); frag_end = ntohs(frag->end); - /* some sanity checks on the fargment offsets */ + /* some sanity checks on the fragment offsets */ if (frag_strt > frag_end) { /* this one is malformed, skip */ frag++; diff --git a/usr.sbin/altq/libaltq/parser.c b/usr.sbin/altq/libaltq/parser.c index 33c6a92956db..60360a44fe98 100644 --- a/usr.sbin/altq/libaltq/parser.c +++ b/usr.sbin/altq/libaltq/parser.c @@ -1,4 +1,4 @@ -/* $NetBSD: parser.c,v 1.12 2021/07/14 08:33:05 ozaki-r Exp $ */ +/* $NetBSD: parser.c,v 1.13 2024/01/15 19:44:07 andvar Exp $ */ /* $KAME: parser.c,v 1.16 2002/02/20 10:40:39 kjc Exp $ */ /* * Copyright (C) 1999-2002 @@ -469,7 +469,7 @@ interface_parser(char *cmdbuf) return (0); } - /* create argment list & look for scheduling discipline options. */ + /* create argument list & look for scheduling discipline options. */ snprintf(qdisc_name, sizeof qdisc_name, "null"); argc = 0; ap = w;