fix various typos in comments.

This commit is contained in:
andvar 2022-04-07 19:33:37 +00:00
parent 8f96bfb9cc
commit 2e9df72ec3
18 changed files with 52 additions and 51 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ping.c,v 1.118 2021/06/11 18:47:56 rillig Exp $ */ /* $NetBSD: ping.c,v 1.119 2022/04/07 19:33:37 andvar Exp $ */
/* /*
* Copyright (c) 1989, 1993 * Copyright (c) 1989, 1993
@ -58,7 +58,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #ifndef lint
__RCSID("$NetBSD: ping.c,v 1.118 2021/06/11 18:47:56 rillig Exp $"); __RCSID("$NetBSD: ping.c,v 1.119 2022/04/07 19:33:37 andvar Exp $");
#endif #endif
#include <stdio.h> #include <stdio.h>
@ -874,7 +874,7 @@ jiggle(int delta)
jiggle_cnt += delta; jiggle_cnt += delta;
/* flush the FLOOD dots when things are quiet /* flush the FLOOD dots when things are quiet
* or occassionally to make the cursor jiggle. * or occasionally to make the cursor jiggle.
*/ */
dt = diffsec(&last_tx, &jiggle_time); dt = diffsec(&last_tx, &jiggle_time);
if (dt > 0.2 || (dt >= 0.15 && delta*jiggle_direction < 0)) if (dt > 0.2 || (dt >= 0.15 && delta*jiggle_direction < 0))

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.42 2017/10/02 11:02:19 maya Exp $ */ /* $NetBSD: main.c,v 1.43 2022/04/07 19:33:37 andvar Exp $ */
/* /*
* Copyright (c) 1983, 1988, 1993 * Copyright (c) 1983, 1988, 1993
@ -45,7 +45,7 @@
__COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993\ __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993\
The Regents of the University of California. All rights reserved."); The Regents of the University of California. All rights reserved.");
#ifdef __NetBSD__ #ifdef __NetBSD__
__RCSID("$NetBSD: main.c,v 1.42 2017/10/02 11:02:19 maya Exp $"); __RCSID("$NetBSD: main.c,v 1.43 2022/04/07 19:33:37 andvar Exp $");
#elif defined(__FreeBSD__) #elif defined(__FreeBSD__)
__RCSID("$FreeBSD$"); __RCSID("$FreeBSD$");
#else #else
@ -402,7 +402,7 @@ usage:
continue; continue;
} }
/* Check the kernel table occassionally for mysteriously /* Check the kernel table occasionally for mysteriously
* evaporated routes * evaporated routes
*/ */
timevalsub(&t2, &flush_kern_timer, &now); timevalsub(&t2, &flush_kern_timer, &now);

View File

@ -1,4 +1,4 @@
/* $NetBSD: siop.c,v 1.70 2019/11/10 21:16:22 chs Exp $ */ /* $NetBSD: siop.c,v 1.71 2022/04/07 19:33:37 andvar Exp $ */
/* /*
* Copyright (c) 1990 The Regents of the University of California. * Copyright (c) 1990 The Regents of the University of California.
@ -70,7 +70,7 @@
#include "opt_ddb.h" #include "opt_ddb.h"
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: siop.c,v 1.70 2019/11/10 21:16:22 chs Exp $"); __KERNEL_RCSID(0, "$NetBSD: siop.c,v 1.71 2022/04/07 19:33:37 andvar Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -780,7 +780,7 @@ siop_start(struct siop_softc *sc, int target, int lun, u_char *cbuf, int clen,
/* /*
* Negotiate wide is the initial negotiation state; since the 53c710 * Negotiate wide is the initial negotiation state; since the 53c710
* doesn't do wide transfers, just begin the synchronous transfer * doesn't do wide transfers, just begin the synchronous transfer
* negotation here. * negotiation here.
*/ */
if (sc->sc_sync[target].state == NEG_WIDE) { if (sc->sc_sync[target].state == NEG_WIDE) {
if (siop_inhibit_sync[target]) { if (siop_inhibit_sync[target]) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: siopvar.h,v 1.28 2022/01/01 21:07:13 andvar Exp $ */ /* $NetBSD: siopvar.h,v 1.29 2022/04/07 19:33:37 andvar Exp $ */
/* /*
* Copyright (c) 1990 The Regents of the University of California. * Copyright (c) 1990 The Regents of the University of California.
@ -183,10 +183,10 @@ struct siop_softc {
/* negotiation states */ /* negotiation states */
#define NEG_WIDE 0 /* Negotiate wide transfers */ #define NEG_WIDE 0 /* Negotiate wide transfers */
#define NEG_WAITW 1 /* Waiting for wide negotation response */ #define NEG_WAITW 1 /* Waiting for wide negotiation response */
#define NEG_SYNC 2 /* Negotiate synch transfers */ #define NEG_SYNC 2 /* Negotiate synch transfers */
#define NEG_WAITS 3 /* Waiting for synch negoation response */ #define NEG_WAITS 3 /* Waiting for synch negoation response */
#define NEG_DONE 4 /* Wide and/or sync negotation done */ #define NEG_DONE 4 /* Wide and/or sync negotiation done */
#define MSG_CMD_COMPLETE 0x00 #define MSG_CMD_COMPLETE 0x00
#define MSG_EXT_MESSAGE 0x01 #define MSG_EXT_MESSAGE 0x01

View File

@ -1,4 +1,4 @@
/* $NetBSD: ncr5380.c,v 1.76 2021/08/07 16:18:46 thorpej Exp $ */ /* $NetBSD: ncr5380.c,v 1.77 2022/04/07 19:33:37 andvar Exp $ */
/* /*
* Copyright (c) 1995 Leo Weppelman. * Copyright (c) 1995 Leo Weppelman.
@ -26,7 +26,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ncr5380.c,v 1.76 2021/08/07 16:18:46 thorpej Exp $"); __KERNEL_RCSID(0, "$NetBSD: ncr5380.c,v 1.77 2022/04/07 19:33:37 andvar Exp $");
/* /*
* Bit mask of targets you want debugging to be shown * Bit mask of targets you want debugging to be shown
@ -1842,7 +1842,7 @@ scsi_dmaok(SC_REQ *reqp)
} }
/* /*
* LWP: I think that this restriction is not strictly nessecary. * LWP: I think that this restriction is not strictly necessary.
*/ */
if ((req_len & 0x1) || ((u_int)req_addr & 0x3)) if ((req_len & 0x1) || ((u_int)req_addr & 0x3))
return 0; return 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ncr5380.c,v 1.70 2021/08/07 16:18:57 thorpej Exp $ */ /* $NetBSD: ncr5380.c,v 1.71 2022/04/07 19:33:37 andvar Exp $ */
/* /*
* Copyright (c) 1995 Leo Weppelman. * Copyright (c) 1995 Leo Weppelman.
@ -26,7 +26,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ncr5380.c,v 1.70 2021/08/07 16:18:57 thorpej Exp $"); __KERNEL_RCSID(0, "$NetBSD: ncr5380.c,v 1.71 2022/04/07 19:33:37 andvar Exp $");
/* /*
* Bit mask of targets you want debugging to be shown * Bit mask of targets you want debugging to be shown
@ -1785,7 +1785,7 @@ scsi_dmaok(SC_REQ *reqp)
return (0); return (0);
/* /*
* LWP: I think that this restriction is not strictly nessecary. * LWP: I think that this restriction is not strictly necessary.
*/ */
if ((req_len & 0x1) || ((u_int)req_addr & 0x3)) if ((req_len & 0x1) || ((u_int)req_addr & 0x3))
return (0); return (0);

View File

@ -1,4 +1,4 @@
/* $NetBSD: clock.c,v 1.18 2018/09/03 16:29:27 riastradh Exp $ */ /* $NetBSD: clock.c,v 1.19 2022/04/07 19:33:37 andvar Exp $ */
/* /*
* Copyright 1997 * Copyright 1997
@ -154,7 +154,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.18 2018/09/03 16:29:27 riastradh Exp $"); __KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.19 2022/04/07 19:33:37 andvar Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -399,7 +399,7 @@ gettick(void)
/* modifications from i386 to shark isa version: /* modifications from i386 to shark isa version:
- removed hardcoded "n -=" values that approximated the time to - removed hardcoded "n -=" values that approximated the time to
calculate delay ticks calculate delay ticks
- made the time to calculate delay ticks almost negligable. 4 multiplies - made the time to calculate delay ticks almost negligible. 4 multiplies
= maximum of 12 cycles = 75ns on a slow SA-110, plus a bunch of shifts; = maximum of 12 cycles = 75ns on a slow SA-110, plus a bunch of shifts;
as opposed to 4 multiplies plus a bunch of divides. as opposed to 4 multiplies plus a bunch of divides.
- removed i386 assembly language hack - removed i386 assembly language hack

View File

@ -1,4 +1,4 @@
/* $NetBSD: hdaudio.c,v 1.17 2022/03/28 12:33:21 riastradh Exp $ */ /* $NetBSD: hdaudio.c,v 1.18 2022/04/07 19:33:37 andvar Exp $ */
/* /*
* Copyright (c) 2009 Precedence Technologies Ltd <support@precedence.co.uk> * Copyright (c) 2009 Precedence Technologies Ltd <support@precedence.co.uk>
@ -30,7 +30,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hdaudio.c,v 1.17 2022/03/28 12:33:21 riastradh Exp $"); __KERNEL_RCSID(0, "$NetBSD: hdaudio.c,v 1.18 2022/04/07 19:33:37 andvar Exp $");
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
@ -1079,7 +1079,7 @@ hdaudio_stream_disestablish(struct hdaudio_stream *st)
} }
/* /*
* Convert most of audio_params_t to stream fmt descriptor; noticably missing * Convert most of audio_params_t to stream fmt descriptor; noticeably missing
* is the # channels bits, as this is encoded differently in codec and * is the # channels bits, as this is encoded differently in codec and
* stream descriptors. * stream descriptors.
* *

View File

@ -1,4 +1,4 @@
/* $NetBSD: aic79xx.c,v 1.64 2022/03/08 20:45:56 andvar Exp $ */ /* $NetBSD: aic79xx.c,v 1.65 2022/04/07 19:33:37 andvar Exp $ */
/* /*
* Core routines and tables shareable across OS platforms. * Core routines and tables shareable across OS platforms.
@ -49,7 +49,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: aic79xx.c,v 1.64 2022/03/08 20:45:56 andvar Exp $"); __KERNEL_RCSID(0, "$NetBSD: aic79xx.c,v 1.65 2022/04/07 19:33:37 andvar Exp $");
#include <dev/ic/aic79xx_osm.h> #include <dev/ic/aic79xx_osm.h>
#include <dev/ic/aic79xx_inline.h> #include <dev/ic/aic79xx_inline.h>
@ -2579,7 +2579,7 @@ ahd_clear_critical_section(struct ahd_softc *ahd)
ahd_outb(ahd, SEQCTL0, ahd_inb(ahd, SEQCTL0) & ~STEP); ahd_outb(ahd, SEQCTL0, ahd_inb(ahd, SEQCTL0) & ~STEP);
ahd_outb(ahd, SIMODE1, simode1); ahd_outb(ahd, SIMODE1, simode1);
/* /*
* SCSIINT seems to glitch occassionally when * SCSIINT seems to glitch occasionally when
* the interrupt masks are restored. Clear SCSIINT * the interrupt masks are restored. Clear SCSIINT
* one more time so that only persistent errors * one more time so that only persistent errors
* are seen as a real interrupt. * are seen as a real interrupt.

View File

@ -1,4 +1,4 @@
/* $NetBSD: mscp_subr.c,v 1.47 2017/06/01 02:45:10 chs Exp $ */ /* $NetBSD: mscp_subr.c,v 1.48 2022/04/07 19:33:38 andvar Exp $ */
/* /*
* Copyright (c) 1988 Regents of the University of California. * Copyright (c) 1988 Regents of the University of California.
* All rights reserved. * All rights reserved.
@ -75,7 +75,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mscp_subr.c,v 1.47 2017/06/01 02:45:10 chs Exp $"); __KERNEL_RCSID(0, "$NetBSD: mscp_subr.c,v 1.48 2022/04/07 19:33:38 andvar Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/device.h> #include <sys/device.h>
@ -326,7 +326,7 @@ mscp_attach(device_t parent, device_t self, void *aux)
/* /*
* The drive is not spun up. Use it anyway. * The drive is not spun up. Use it anyway.
* *
* N.B.: this seems to be a common occurrance * N.B.: this seems to be a common occurrence
* after a power failure. The first attempt * after a power failure. The first attempt
* to bring it on line seems to spin it up * to bring it on line seems to spin it up
* (and thus takes several minutes). Perhaps * (and thus takes several minutes). Perhaps

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_bge.c,v 1.351 2022/01/22 19:01:56 martin Exp $ */ /* $NetBSD: if_bge.c,v 1.352 2022/04/07 19:33:38 andvar Exp $ */
/* /*
* Copyright (c) 2001 Wind River Systems * Copyright (c) 2001 Wind River Systems
@ -79,7 +79,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.351 2022/01/22 19:01:56 martin Exp $"); __KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.352 2022/04/07 19:33:38 andvar Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -1257,7 +1257,7 @@ bge_set_thresh(struct ifnet *ifp, int lvl)
/* For now, just save the new Rx-intr thresholds and record /* For now, just save the new Rx-intr thresholds and record
* that a threshold update is pending. Updating the hardware * that a threshold update is pending. Updating the hardware
* registers here (even at splhigh()) is observed to * registers here (even at splhigh()) is observed to
* occasionaly cause glitches where Rx-interrupts are not * occasionally cause glitches where Rx-interrupts are not
* honoured for up to 10 seconds. jonathan@NetBSD.org, 2003-04-05 * honoured for up to 10 seconds. jonathan@NetBSD.org, 2003-04-05
*/ */
s = splnet(); s = splnet();

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_proc.c,v 1.265 2022/03/13 17:21:29 riastradh Exp $ */ /* $NetBSD: kern_proc.c,v 1.266 2022/04/07 19:33:38 andvar Exp $ */
/*- /*-
* Copyright (c) 1999, 2006, 2007, 2008, 2020 The NetBSD Foundation, Inc. * Copyright (c) 1999, 2006, 2007, 2008, 2020 The NetBSD Foundation, Inc.
@ -62,7 +62,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.265 2022/03/13 17:21:29 riastradh Exp $"); __KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.266 2022/04/07 19:33:38 andvar Exp $");
#ifdef _KERNEL_OPT #ifdef _KERNEL_OPT
#include "opt_kstack.h" #include "opt_kstack.h"
@ -2153,8 +2153,9 @@ sysctl_doeproc(SYSCTLFN_ARGS)
/* /*
* Hande all the operations in one switch on the cost of * Hande all the operations in one switch on the cost of
* algorithm complexity is on purpose. The win splitting this * algorithm complexity is on purpose. The win splitting this
* function into several similar copies makes maintenance burden * function into several similar copies makes maintenance
* burden, code grow and boost is neglible in practical systems. * burden, code grow and boost is negligible in practical
* systems.
*/ */
switch (op) { switch (op) {
case KERN_PROC_PID: case KERN_PROC_PID:

View File

@ -1,4 +1,4 @@
/* $NetBSD: sctp_indata.c,v 1.8 2018/12/22 13:11:38 maxv Exp $ */ /* $NetBSD: sctp_indata.c,v 1.9 2022/04/07 19:33:38 andvar Exp $ */
/* $KAME: sctp_indata.c,v 1.36 2005/03/06 16:04:17 itojun Exp $ */ /* $KAME: sctp_indata.c,v 1.36 2005/03/06 16:04:17 itojun Exp $ */
/* /*
@ -31,7 +31,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sctp_indata.c,v 1.8 2018/12/22 13:11:38 maxv Exp $"); __KERNEL_RCSID(0, "$NetBSD: sctp_indata.c,v 1.9 2022/04/07 19:33:38 andvar Exp $");
#ifdef _KERNEL_OPT #ifdef _KERNEL_OPT
#include "opt_ipsec.h" #include "opt_ipsec.h"
@ -4503,7 +4503,7 @@ sctp_handle_forward_tsn(struct sctp_tcb *stcb,
if (cumack_set_flag) { if (cumack_set_flag) {
/* /*
* fwd-tsn went outside my gap array - not a * fwd-tsn went outside my gap array - not a
* common occurance. Do the same thing we * common occurrence. Do the same thing we
* do when a cookie-echo arrives. * do when a cookie-echo arrives.
*/ */
asoc->highest_tsn_inside_map = new_cum_tsn - 1; asoc->highest_tsn_inside_map = new_cum_tsn - 1;

View File

@ -1,4 +1,4 @@
/* $NetBSD: audioio.h,v 1.39 2021/08/21 11:55:25 andvar Exp $ */ /* $NetBSD: audioio.h,v 1.40 2022/04/07 19:33:38 andvar Exp $ */
/* /*
* Copyright (c) 1991-1993 Regents of the University of California. * Copyright (c) 1991-1993 Regents of the University of California.
@ -62,7 +62,7 @@ struct audio_prinfo {
u_int samples; /* number of samples */ u_int samples; /* number of samples */
u_int eof; /* End Of File (zero-size writes) counter */ u_int eof; /* End Of File (zero-size writes) counter */
u_char pause; /* non-zero if paused, zero to resume */ u_char pause; /* non-zero if paused, zero to resume */
u_char error; /* non-zero if underflow/overflow ocurred */ u_char error; /* non-zero if underflow/overflow occurred */
u_char waiting; /* non-zero if another process hangs in open */ u_char waiting; /* non-zero if another process hangs in open */
u_char balance; /* stereo channel balance */ u_char balance; /* stereo channel balance */
u_char cspare[2]; u_char cspare[2];

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr.c,v 1.19 2009/08/13 06:59:37 dholland Exp $ */ /* $NetBSD: subr.c,v 1.20 2022/04/07 19:33:38 andvar Exp $ */
/* /*
* Copyright (c) 1980, 1993 * Copyright (c) 1980, 1993
@ -34,7 +34,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)subr.c 8.1 (Berkeley) 6/6/93"; static char sccsid[] = "@(#)subr.c 8.1 (Berkeley) 6/6/93";
#endif #endif
__RCSID("$NetBSD: subr.c,v 1.19 2009/08/13 06:59:37 dholland Exp $"); __RCSID("$NetBSD: subr.c,v 1.20 2022/04/07 19:33:38 andvar Exp $");
#endif /* not lint */ #endif /* not lint */
#include <ctype.h> #include <ctype.h>
@ -111,7 +111,7 @@ position(const char *string, char ch)
} }
/* /*
* clobber the first occurance of ch in string by the new character * clobber the first occurrence of ch in string by the new character
*/ */
char * char *
substitute(char *string, char chold, char chnew) substitute(char *string, char chold, char chnew)

View File

@ -1,4 +1,4 @@
/* $NetBSD: getextattr.c,v 1.12 2014/06/20 15:22:01 manu Exp $ */ /* $NetBSD: getextattr.c,v 1.13 2022/04/07 19:33:38 andvar Exp $ */
/*- /*-
* Copyright (c) 2002, 2003 Networks Associates Technology, Inc. * Copyright (c) 2002, 2003 Networks Associates Technology, Inc.
@ -258,7 +258,7 @@ main(int argc, char *argv[])
argc--; argv++; argc--; argv++;
} else { } else {
/* /*
* The namespace was not valid. Perhaps it was omited. * The namespace was not valid. Perhaps it was omitted.
* Try to guess a missing namespace by using * Try to guess a missing namespace by using
* linux layout "namespace.attribute". While * linux layout "namespace.attribute". While
* we are here, also test the Linux namespaces. * we are here, also test the Linux namespaces.

View File

@ -1,4 +1,4 @@
/* $NetBSD: mpls_routes.c,v 1.24 2016/04/04 07:37:08 ozaki-r Exp $ */ /* $NetBSD: mpls_routes.c,v 1.25 2022/04/07 19:33:38 andvar Exp $ */
/*- /*-
* Copyright (c) 2010 The NetBSD Foundation, Inc. * Copyright (c) 2010 The NetBSD Foundation, Inc.
@ -864,7 +864,7 @@ bind_current_routes()
/* /*
* This function is called only at startup, so use * This function is called only at startup, so use
* this ocassion to delete all MPLS routes * this occasion to delete all MPLS routes
*/ */
if (so_dst->sa.sa_family == AF_MPLS) { if (so_dst->sa.sa_family == AF_MPLS) {
delete_route(so_dst, NULL, NO_FREESO); delete_route(so_dst, NULL, NO_FREESO);

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.11 2022/01/29 16:01:19 martin Exp $ */ /* $NetBSD: md.c,v 1.12 2022/04/07 19:33:38 andvar Exp $ */
/* /*
* Copyright 1997 Piermont Information Systems Inc. * Copyright 1997 Piermont Information Systems Inc.
@ -782,7 +782,7 @@ getName(part, len_name, name)
} }
/* /*
* Find the first occurance of a Standard Type partition and * Find the first occurrence of a Standard Type partition and
* mark it for use along with the default mount slot. * mark it for use along with the default mount slot.
*/ */
static int static int