1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-21 23:18:00 -08:00

spelling fixes; from paul tagliamonte

any parts of his diff not taken are noted on tech
This commit is contained in:
jmc 2022-12-28 21:30:15 +00:00
parent 20ec15d66a
commit 3a50f0a93a
107 changed files with 261 additions and 261 deletions

View File

@ -54,7 +54,7 @@ struct user_list {
};
/*
* this is for chosing whether to ignore a login
* this is for choosing whether to ignore a login
*/
struct tty_list {
struct tty_list *next;

View File

@ -1,4 +1,4 @@
/* $Id: util.c,v 1.12 2019/06/28 13:32:46 deraadt Exp $ */
/* $Id: util.c,v 1.13 2022/12/28 21:30:15 jmc Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@ -206,7 +206,7 @@ writebuf(int fd, enum comm comm, const void *v, size_t sz)
/*
* First, try to write the length.
* If the other end of the pipe has closed, we allow the short
* write to propogate as a return value of zero.
* write to propagate as a return value of zero.
* To detect this, catch SIGPIPE.
*/

View File

@ -1,4 +1,4 @@
/* $OpenBSD: afs_ops.c,v 1.20 2021/10/21 10:55:56 deraadt Exp $ */
/* $OpenBSD: afs_ops.c,v 1.21 2022/12/28 21:30:15 jmc Exp $ */
/*
* Copyright (c) 1990 Jan-Simon Pendry
@ -685,7 +685,7 @@ try_mount(void *mvp)
/*
* If the directory is not yet made and
* it needs to be made, then make it!
* This may be run in a backgroun process
* This may be run in a background process
* in which case the flag setting won't be
* noticed later - but it is set anyway
* just after run_task is called. It

View File

@ -32,11 +32,11 @@
* SUCH DAMAGE.
*
* from: @(#)amq_subr.c 8.1 (Berkeley) 6/6/93
* $Id: amq_subr.c,v 1.18 2015/01/21 09:50:25 guenther Exp $
* $Id: amq_subr.c,v 1.19 2022/12/28 21:30:15 jmc Exp $
*/
/*
* Auxilliary routines for amq tool
* Auxiliary routines for amq tool
*/
#include "am.h"

View File

@ -32,7 +32,7 @@
* SUCH DAMAGE.
*
* from: @(#)ifs_ops.c 8.1 (Berkeley) 6/6/93
* $Id: ifs_ops.c,v 1.6 2017/07/28 22:41:10 fcambus Exp $
* $Id: ifs_ops.c,v 1.7 2022/12/28 21:30:15 jmc Exp $
*/
#include "am.h"
@ -45,7 +45,7 @@
*
* This is a *gross* hack - it knows far too
* much about the way other parts of the
* sytem work. See restart.c too.
* system work. See restart.c too.
*/
static char not_a_filesystem[] = "Attempting to inherit not-a-filesystem";
/*

View File

@ -1,4 +1,4 @@
/* $OpenBSD: map.c,v 1.16 2015/12/05 21:15:01 mmcc Exp $ */
/* $OpenBSD: map.c,v 1.17 2022/12/28 21:30:15 jmc Exp $ */
/*-
* Copyright (c) 1990 Jan-Simon Pendry
@ -877,7 +877,7 @@ free_map_if_success(int rc, int term, void *closure)
mf->mf_flags &= ~MFF_UNMOUNTING;
/*
* If a timeout was defered because the underlying filesystem
* If a timeout was deferred because the underlying filesystem
* was busy then arrange for a timeout as soon as possible.
*/
if (mf->mf_flags & MFF_WANTTIMO) {

View File

@ -32,13 +32,13 @@
* SUCH DAMAGE.
*
* from: @(#)wire.c 8.1 (Berkeley) 6/6/93
* $Id: wire.c,v 1.13 2014/10/24 10:29:56 schwarze Exp $
* $Id: wire.c,v 1.14 2022/12/28 21:30:15 jmc Exp $
*/
/*
* This function returns the subnet (address&netmask) for the primary network
* interface. If the resulting address has an entry in the hosts file, the
* corresponding name is retuned, otherwise the address is returned in
* corresponding name is returned, otherwise the address is returned in
* standard internet format.
* As a side-effect, a list of local IP/net address is recorded for use
* by the islocalnet() function.

View File

@ -36,7 +36,7 @@
@c OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
@c
@c from: @(#)amdref.texinfo 8.1 (Berkeley) 6/6/93
@c $Id: amdref.texinfo,v 1.14 2017/08/22 16:59:40 schwarze Exp $
@c $Id: amdref.texinfo,v 1.15 2022/12/28 21:30:15 jmc Exp $
@c
@setfilename amdref.info
@c @setfilename /usr/local/emacs/info/amd
@ -265,7 +265,7 @@ configuration files, shell scripts and so on.
@cindex Fileserver
@cindex sublink
@i{Amd} views the world as a set of fileservers, each containg one or
@i{Amd} views the world as a set of fileservers, each containing one or
more filesystems where each filesystem contains one or more
@dfn{volumes}. Here the term @dfn{volume} is used to refer to a
coherent set of files such as a user's home directory or a @TeX{}
@ -1960,7 +1960,7 @@ jsp host!=charm;type:=nfs;rhost:=charm;rfs:=/home/charm;sublink:=jsp
@end example
The mount system call and any unmount attempts are always done
in a new task to avoid the possibilty of blocking @i{Amd}.
in a new task to avoid the possibility of blocking @i{Amd}.
@node Network Host Filesystem, Network Filesystem Group, Network Filesystem, Filesystem Types
@comment node-name, next, previous, up
@ -3067,7 +3067,7 @@ By using the wildcard facility, @i{Amd} can @dfn{overlay} an existing
directory with additional entries.
The system files are usually mounted under @samp{/usr}. If instead
@i{Amd} is mounted on @samp{/usr}, additional
names can be overlayed to augment or replace names in the ``master'' @samp{/usr}.
names can be overlaid to augment or replace names in the ``master'' @samp{/usr}.
A map to do this would have the form:
@example

View File

@ -32,7 +32,7 @@
* SUCH DAMAGE.
*
* from: @(#)amq.x 8.1 (Berkeley) 6/6/93
* $Id: amq.x,v 1.6 2015/01/21 09:49:37 guenther Exp $
* $Id: amq.x,v 1.7 2022/12/28 21:30:15 jmc Exp $
*
*/
@ -118,7 +118,7 @@ program AMQ_PROGRAM {
version AMQ_VERSION {
/*
* Does no work. It is made available in all RPC services
* to allow server reponse testing and timing
* to allow server response testing and timing
*/
void
AMQPROC_NULL(void) = 0;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: nfs_prot.x,v 1.1 2015/01/22 03:43:58 guenther Exp $ */
/* $OpenBSD: nfs_prot.x,v 1.2 2022/12/28 21:30:15 jmc Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@ -138,7 +138,7 @@ struct fattr {
unsigned uid; /* owner user id */
unsigned gid; /* owner group id */
unsigned size; /* file size in bytes */
unsigned blocksize; /* prefered block size */
unsigned blocksize; /* preferred block size */
unsigned rdev; /* special device # */
unsigned blocks; /* Kb of disk used by file */
unsigned fsid; /* device # */

View File

@ -1,4 +1,4 @@
/* $OpenBSD: output_json.c,v 1.26 2022/11/09 14:20:11 claudio Exp $ */
/* $OpenBSD: output_json.c,v 1.27 2022/12/28 21:30:15 jmc Exp $ */
/*
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
@ -903,7 +903,7 @@ json_rib(struct ctl_show_rib *r, u_char *asdata, size_t aslen,
json_do_printf("last_update", "%s", fmt_timeframe(r->age));
json_do_int("last_update_sec", r->age);
/* keep the object open for communities and attribuites */
/* keep the object open for communities and attributes */
}
static void

View File

@ -1,4 +1,4 @@
/* $OpenBSD: config.c,v 1.105 2022/11/18 10:17:23 claudio Exp $ */
/* $OpenBSD: config.c,v 1.106 2022/12/28 21:30:15 jmc Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@ -352,7 +352,7 @@ merge_config(struct bgpd_config *xconf, struct bgpd_config *conf)
} else /* exists, just flag */
ola->reconf = RECONF_KEEP;
}
/* finally clean up the original list and remove all stale entires */
/* finally clean up the original list and remove all stale entries */
for (nla = TAILQ_FIRST(xconf->listen_addrs); nla != NULL; nla = next) {
next = TAILQ_NEXT(nla, entry);
if (nla->reconf == RECONF_DELETE) {

View File

@ -1,4 +1,4 @@
/* $OpenBSD: kroute.c,v 1.302 2022/11/09 14:26:14 claudio Exp $ */
/* $OpenBSD: kroute.c,v 1.303 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -2099,7 +2099,7 @@ kif_validate(struct kif *kif)
}
/*
* return 1 when the interface is up and the link state is up or unknwown
* return 1 when the interface is up and the link state is up or unknown
* except when this is a carp interface, then return 1 only when link state
* is up
*/
@ -2435,7 +2435,7 @@ mask2prefixlen6(struct sockaddr_in6 *sa_in6)
u_int l = 0;
/*
* sin6_len is the size of the sockaddr so substract the offset of
* sin6_len is the size of the sockaddr so subtract the offset of
* the possibly truncated sin6_addr struct.
*/
ap = (uint8_t *)&sa_in6->sin6_addr;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: mrt.c,v 1.110 2022/09/01 13:23:24 claudio Exp $ */
/* $OpenBSD: mrt.c,v 1.111 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@ -109,7 +109,7 @@ mrt_update_msg_guess_aid(uint8_t *pkg, uint16_t pkglen)
pkglen -= 2;
if (wlen > 0) {
/* UPDATE has withdraw routes, therefor IPv4 */
/* UPDATE has withdraw routes, therefore IPv4 */
return AID_INET;
}
@ -119,7 +119,7 @@ mrt_update_msg_guess_aid(uint8_t *pkg, uint16_t pkglen)
pkglen -= 2;
if (alen < pkglen) {
/* UPDATE has NLRI prefixes, therefor IPv4 */
/* UPDATE has NLRI prefixes, therefore IPv4 */
return AID_INET;
}
@ -972,7 +972,7 @@ mrt_dump_hdr_se(struct ibuf ** bp, struct peer *peer, uint16_t type,
}
DUMP_LONG(*bp, len);
/* milisecond field use by the _ET format */
/* millisecond field use by the _ET format */
DUMP_LONG(*bp, time.tv_nsec / 1000);
if (subtype == BGP4MP_STATE_CHANGE_AS4 ||

View File

@ -1,4 +1,4 @@
/* $OpenBSD: mrt.h,v 1.37 2022/02/06 09:51:19 claudio Exp $ */
/* $OpenBSD: mrt.h,v 1.38 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@ -73,7 +73,7 @@ enum MRT_MSG_TYPES {
/*
* Main zebra dump format is in MSG_PROTOCOL_BGP4MP exceptions are table dumps
* that are normaly saved as MSG_TABLE_DUMP.
* that are normally saved as MSG_TABLE_DUMP.
* In most cases this is the format to choose to dump updates et al.
*/
enum MRT_BGP4MP_SUBTYPES {
@ -162,7 +162,7 @@ enum MRT_BGP4MP_SUBTYPES {
* ... |
* +--------+--------+--------+
*
* View is normaly 0 and originated the time of last change.
* View is normally 0 and originated the time of last change.
* The status seems to be 1 by default but probably something to indicate
* the status of a prefix would be more useful.
* The format of the nexthop address is defined via the afi value. For IPv6
@ -298,7 +298,7 @@ enum MRT_DUMP_V2_SUBTYPES {
* +--------+--------+--------+
*
*
* View is normaly 0 and seqnum just a simple counter for this dump.
* View is normally 0 and seqnum just a simple counter for this dump.
* The status field is unused and should be set to 1.
*/

View File

@ -1,4 +1,4 @@
/* $OpenBSD: rde.c,v 1.581 2022/12/14 14:16:20 claudio Exp $ */
/* $OpenBSD: rde.c,v 1.582 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -523,7 +523,7 @@ rde_dispatch_imsg_session(struct imsgbuf *ibuf)
network_add(&netconf_s, &netconf_state);
break;
case 0:
/* something failed beforehands */
/* something failed beforehand */
break;
default:
badnet:
@ -850,7 +850,7 @@ rde_dispatch_imsg_parent(struct imsgbuf *ibuf)
/* no change to rib apart from filters */
rib->state = RECONF_KEEP;
} else {
/* reload rib because somehing changed */
/* reload rib because something changed */
rib->flags_tmp = rr.flags;
rib->rtableid_tmp = rr.rtableid;
rib->state = RECONF_RELOAD;
@ -1737,7 +1737,7 @@ rde_update_withdraw(struct rde_peer *peer, uint32_t path_id,
* BGP UPDATE parser functions
*/
/* attribute parser specific makros */
/* attribute parser specific macros */
#define UPD_READ(t, p, plen, n) \
do { \
memcpy(t, p, n); \

View File

@ -1,4 +1,4 @@
/* $OpenBSD: rde.h,v 1.274 2022/12/14 12:37:15 claudio Exp $ */
/* $OpenBSD: rde.h,v 1.275 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and
@ -202,8 +202,8 @@ struct rde_community {
#define F_PREFIX_ANNOUNCED 0x00400
#define F_ANN_DYNAMIC 0x00800
#define F_ATTR_OTC 0x01000 /* OTC present */
#define F_ATTR_OTC_LOOP 0x02000 /* otc loop, not eligable */
#define F_ATTR_PARSE_ERR 0x10000 /* parse error, not eligable */
#define F_ATTR_OTC_LOOP 0x02000 /* otc loop, not eligible */
#define F_ATTR_PARSE_ERR 0x10000 /* parse error, not eligible */
#define F_ATTR_LINKED 0x20000 /* if set path is on various lists */
#define ORIGIN_IGP 0

View File

@ -1,4 +1,4 @@
/* $OpenBSD: rde_community.c,v 1.9 2022/09/01 13:19:11 claudio Exp $ */
/* $OpenBSD: rde_community.c,v 1.10 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
@ -857,7 +857,7 @@ communities_copy(struct rde_community *to, struct rde_community *from)
{
memset(to, 0, sizeof(*to));
/* ingore from->size and allocate the perfect amount */
/* ignore from->size and allocate the perfect amount */
to->size = from->size;
to->nentries = from->nentries;
to->flags = from->flags;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: rde_rib.c,v 1.250 2022/10/12 11:26:05 jsg Exp $ */
/* $OpenBSD: rde_rib.c,v 1.251 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@ -740,7 +740,7 @@ path_copy(struct rde_aspath *dst, const struct rde_aspath *src)
return (dst);
}
/* initialize or pepare an aspath for use */
/* initialize or prepare an aspath for use */
struct rde_aspath *
path_prep(struct rde_aspath *asp)
{
@ -1130,7 +1130,7 @@ prefix_adjout_update(struct prefix *p, struct rde_peer *peer,
if (p == NULL) {
p = prefix_alloc();
/* initally mark DEAD so code below is skipped */
/* initially mark DEAD so code below is skipped */
p->flags |= PREFIX_FLAG_ADJOUT | PREFIX_FLAG_DEAD;
p->pt = pt_get(prefix, prefixlen);

View File

@ -1,4 +1,4 @@
/* $OpenBSD: rde_trie.c,v 1.16 2022/08/31 11:25:36 claudio Exp $ */
/* $OpenBSD: rde_trie.c,v 1.17 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2018 Claudio Jeker <claudio@openbsd.org>
@ -35,7 +35,7 @@
* nodes. Internal nodes are added when needed because off path nodes are being
* inserted and are just used for branching.
* During lookup every node defines which bit is checked for branching. This
* offset is strictly increasing. For IPv4 the maximum is therefor 32 levels.
* offset is strictly increasing. For IPv4 the maximum is therefore 32 levels.
* Every node checks the bit at position plen to decide which branch to take.
* The real nodes also include a prefixlen mask which represents the prefixlen
* range that was defined. The prefixlen mask for IPv4 only has 32 bits but
@ -592,7 +592,7 @@ trie_roa_check_v4(struct trie_head *th, struct in_addr *prefix, uint8_t plen,
if (n->node) {
/*
* The prefix is covered by this roa node
* therefor invalid unless roa_set matches.
* therefore invalid unless roa_set matches.
*/
validity = ROA_INVALID;
@ -640,7 +640,7 @@ trie_roa_check_v6(struct trie_head *th, struct in6_addr *prefix, uint8_t plen,
if (n->node) {
/*
* This prefix is covered by this roa node.
* Therefor invalid unless proven otherwise.
* Therefore invalid unless proven otherwise.
*/
validity = ROA_INVALID;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: rtr_proto.c,v 1.7 2022/07/11 16:47:27 claudio Exp $ */
/* $OpenBSD: rtr_proto.c,v 1.8 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
@ -360,7 +360,7 @@ rtr_parse_header(struct rtr_session *rs, void *buf,
return -1;
}
/*
* session_id check ommitted since ROUTER_KEY and ERROR_REPORT
* session_id check omitted since ROUTER_KEY and ERROR_REPORT
* use the field for different things.
*/
return 0;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: session.c,v 1.437 2022/12/27 17:05:38 claudio Exp $ */
/* $OpenBSD: session.c,v 1.438 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@ -586,7 +586,7 @@ init_peer(struct peer *p)
/*
* on startup, demote if requested.
* do not handle new peers. they must reach ESTABLISHED beforehands.
* do not handle new peers. they must reach ESTABLISHED beforehand.
* peers added at runtime have reconf_action set to RECONF_REINIT.
*/
if (p->reconf_action != RECONF_REINIT && p->conf.demote_group[0])
@ -1505,7 +1505,7 @@ session_open(struct peer *p)
if (optparamlen == 0) {
/* nothing */
} else if (optparamlen + 2 >= 255) {
/* RFC9072: 2 byte lenght instead of 1 + 3 byte extra header */
/* RFC9072: 2 byte length instead of 1 + 3 byte extra header */
optparamlen += sizeof(op_type) + 2 + 3;
msg.optparamlen = 255;
extlen = 1;
@ -2775,7 +2775,7 @@ capa_neg_calc(struct peer *p, uint8_t *suberr)
/*
* graceful restart: the peer capabilities are of interest here.
* It is necessary to compare the new values with the previous ones
* and act acordingly. AFI/SAFI that are not part in the MP capability
* and act accordingly. AFI/SAFI that are not part in the MP capability
* are treated as not being present.
* Also make sure that a flush happens if the session stopped
* supporting graceful restart.

View File

@ -1,4 +1,4 @@
/* $OpenBSD: bt_parse.y,v 1.48 2022/11/12 14:19:08 mpi Exp $ */
/* $OpenBSD: bt_parse.y,v 1.49 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2019-2021 Martin Pieuchot <mpi@openbsd.org>
@ -651,12 +651,12 @@ bh_inc(const char *hname, struct bt_arg *hval, struct bt_arg *hrange)
min = (long)ba->ba_value;
if (min >= 0)
break;
yyerror("negative minium");
yyerror("negative minimum");
case 2:
max = (long)ba->ba_value;
if (max > min)
break;
yyerror("maximum smaller than minium (%d < %d)",
yyerror("maximum smaller than minimum (%d < %d)",
max, min);
case 3:
break;
@ -877,7 +877,7 @@ again:
case 't': c = '\t'; break;
case 'v': c = '\v'; break;
default:
yyerror("'%c' unsuported escape", c);
yyerror("'%c' unsupported escape", c);
return ERROR;
}
}

View File

@ -1,4 +1,4 @@
/* $OpenBSD: bt_parser.h,v 1.22 2021/11/12 16:57:24 claudio Exp $ */
/* $OpenBSD: bt_parser.h,v 1.23 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2019-2021 Martin Pieuchot <mpi@openbsd.org>
@ -111,7 +111,7 @@ struct bt_var {
};
/*
* Respresentation of an argument.
* Representation of an argument.
*
* A so called "argument" can be any symbol representing a value or
* a combination of those through an operation.

View File

@ -1,4 +1,4 @@
/* $OpenBSD: btrace.c,v 1.67 2022/11/12 14:19:08 mpi Exp $ */
/* $OpenBSD: btrace.c,v 1.68 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2019 - 2021 Martin Pieuchot <mpi@openbsd.org>
@ -1428,7 +1428,7 @@ ba2long(struct bt_arg *ba, struct dt_evt *dtev)
break;
case B_AT_MAP:
bv = ba->ba_value;
/* Unitialized map */
/* Uninitialized map */
if (bv->bv_value == NULL)
return 0;
val = ba2long(map_get((struct map *)bv->bv_value,
@ -1534,7 +1534,7 @@ ba2str(struct bt_arg *ba, struct dt_evt *dtev)
break;
case B_AT_MAP:
bv = ba->ba_value;
/* Unitialized map */
/* Uninitialized map */
if (bv->bv_value == NULL) {
str = buf;
break;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: atrun.c,v 1.53 2021/10/24 21:24:18 deraadt Exp $ */
/* $OpenBSD: atrun.c,v 1.54 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2002-2003 Todd C. Miller <millert@openbsd.org>
@ -187,7 +187,7 @@ atrun(at_db *db, double batch_maxload, time_t now)
if (fstatat(dfd, atfile, &sb, AT_SYMLINK_NOFOLLOW) != 0) {
TAILQ_REMOVE(&db->jobs, job, entries);
free(job);
continue; /* disapeared from queue */
continue; /* disappeared from queue */
}
if (!S_ISREG(sb.st_mode)) {
syslog(LOG_WARNING, "(CRON) NOT REGULAR (%s)",

View File

@ -1,4 +1,4 @@
/* $OpenBSD: rde.c,v 1.31 2021/01/19 12:29:46 claudio Exp $ */
/* $OpenBSD: rde.c,v 1.32 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@ -352,7 +352,7 @@ rde_select_ds_ifs(struct mfc *mfc, struct iface *iface)
rn = rt_match_origin(mfc->origin.s_addr);
if (rn == NULL) {
log_debug("rde_selected_ds_iface: no informations about "
log_debug("rde_selected_ds_iface: no information about "
"the origin %s", inet_ntoa(mfc->origin));
return (0);
}

View File

@ -1,4 +1,4 @@
/* $OpenBSD: hello.c,v 1.5 2016/09/02 16:29:55 renato Exp $ */
/* $OpenBSD: hello.c,v 1.6 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@ -110,7 +110,7 @@ recv_hello(struct eigrp_iface *ei, union eigrpd_addr *src, struct nbr *nbr,
tp->kvalues[2] == 255 && tp->kvalues[3] == 255 &&
tp->kvalues[4] == 255 && tp->kvalues[5] == 0) {
if (nbr) {
log_debug("%s: peer temination", __func__);
log_debug("%s: peer termination", __func__);
nbr_del(nbr);
}
return;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: kroute.c,v 1.18 2017/07/24 11:00:01 friehm Exp $ */
/* $OpenBSD: kroute.c,v 1.19 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@ -698,7 +698,7 @@ kif_remove(struct kif_node *kif)
struct kif_addr *ka;
if (RB_REMOVE(kif_tree, &kit, kif) == NULL) {
log_warnx("%s failed for inteface %s", __func__, kif->k.ifname);
log_warnx("%s failed for interface %s", __func__, kif->k.ifname);
return (-1);
}

View File

@ -1,4 +1,4 @@
/* $OpenBSD: rde_dual.c,v 1.29 2022/01/20 14:11:27 naddy Exp $ */
/* $OpenBSD: rde_dual.c,v 1.30 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@ -633,7 +633,7 @@ rt_update_fib(struct rt_node *rn)
/*
* Only feasible successors and the successor itself
* are elegible to be installed.
* are eligible to be installed.
*/
if (route->rdistance >= rn->successor.fdistance)
goto uninstall;
@ -708,7 +708,7 @@ rt_get_successor_fc(struct rt_node *rn)
TAILQ_FOREACH(route, &rn->routes, entry)
if (route->type == EIGRP_ROUTE_INTERNAL) {
/*
* connected routes should always be prefered over
* connected routes should always be preferred over
* received routes independent of the metric.
*/
if (route->nbr->flags & F_RDE_NBR_LOCAL)
@ -720,7 +720,7 @@ rt_get_successor_fc(struct rt_node *rn)
TAILQ_FOREACH(route, &rn->routes, entry) {
/*
* draft-savage-eigrp-04 - Section 5.4.7:
* "Internal routes MUST be prefered over external routes
* "Internal routes MUST be preferred over external routes
* independent of the metric."
*/
if (route->type == EIGRP_ROUTE_EXTERNAL && !external_only)

View File

@ -1,4 +1,4 @@
/* $OpenBSD: util.c,v 1.11 2022/05/06 15:51:09 claudio Exp $ */
/* $OpenBSD: util.c,v 1.12 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@ -42,7 +42,7 @@ mask2prefixlen6(struct sockaddr_in6 *sa_in6)
uint8_t *ap, *ep;
/*
* sin6_len is the size of the sockaddr so substract the offset of
* sin6_len is the size of the sockaddr so subtract the offset of
* the possibly truncated sin6_addr struct.
*/
ap = (uint8_t *)&sa_in6->sin6_addr;
@ -265,7 +265,7 @@ embedscope(struct sockaddr_in6 *sin6)
if (IN6_IS_SCOPE_EMBED(&sin6->sin6_addr)) {
memcpy(&tmp16, &sin6->sin6_addr.s6_addr[2], sizeof(tmp16));
if (tmp16 != 0) {
log_warnx("%s: address %s already has embeded scope %u",
log_warnx("%s: address %s already has embedded scope %u",
__func__, log_sockaddr(sin6), ntohs(tmp16));
}
tmp16 = htons(sin6->sin6_scope_id);

View File

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.62 2021/10/15 15:01:28 naddy Exp $ */
/* $OpenBSD: parse.y,v 1.63 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Reyk Floeter <reyk@openbsd.org>
@ -1101,7 +1101,7 @@ assign : ARROW
mask : '&'
;
comma : /* emtpy */
comma : /* empty */
| ',' optnl
;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: config.c,v 1.62 2021/10/24 16:01:04 ian Exp $ */
/* $OpenBSD: config.c,v 1.63 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2011 - 2015 Reyk Floeter <reyk@openbsd.org>
@ -233,7 +233,7 @@ config_setserver(struct httpd *env, struct server *srv)
return (-1);
}
/* Configure FCGI parmeters if necessary. */
/* Configure FCGI parameters if necessary. */
config_setserver_fcgiparams(env, srv);
}
}

View File

@ -1,4 +1,4 @@
/* $OpenBSD: ifstated.c,v 1.66 2021/07/12 15:09:21 beck Exp $ */
/* $OpenBSD: ifstated.c,v 1.67 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2004 Marco Pfatschbacher <mpf@openbsd.org>
@ -515,7 +515,7 @@ scan_ifstate(const char *ifname, int s, int do_eval)
}
/*
* Do a bottom-up ajustment of the expression tree's truth value,
* Do a bottom-up adjustment of the expression tree's truth value,
* level-by-level to ensure that each expression's subexpressions have been
* evaluated.
*/

View File

@ -1,4 +1,4 @@
/* $OpenBSD: i386_nlist.c,v 1.8 2021/10/24 21:24:18 deraadt Exp $ */
/* $OpenBSD: i386_nlist.c,v 1.9 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
@ -64,7 +64,7 @@ __elf_is_okay__(Elf_Ehdr *ehdr)
{
int retval = 0;
/*
* We need to check magic, class size, endianess,
* We need to check magic, class size, endianness,
* and version before we look at the rest of the
* Elf_Ehdr structure. These few elements are
* represented in a machine independent fashion.

View File

@ -1,4 +1,4 @@
/* $OpenBSD: landisk_installboot.c,v 1.11 2022/08/31 18:46:06 miod Exp $ */
/* $OpenBSD: landisk_installboot.c,v 1.12 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2013 Joel Sing <jsing@openbsd.org>
@ -71,7 +71,7 @@ md_installboot(int devfd, char *dev)
exit(1);
/*
* Write bootblock into the beggining of the OpenBSD partition or
* Write bootblock into the beginning of the OpenBSD partition or
* at the beginning of the disk.
*/
md_bootstrap(devfd, dev, stage1);

View File

@ -1,4 +1,4 @@
/* $OpenBSD: iscsid.h,v 1.17 2021/04/16 14:37:06 claudio Exp $ */
/* $OpenBSD: iscsid.h,v 1.18 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2009 Claudio Jeker <claudio@openbsd.org>
@ -276,7 +276,7 @@ struct connection {
u_int32_t expstatsn;
int state;
int fd;
u_int16_t cid; /* conection id */
u_int16_t cid; /* connection id */
};
struct task {

View File

@ -1,4 +1,4 @@
/* $OpenBSD: vscsi.c,v 1.17 2016/08/16 18:41:57 tedu Exp $ */
/* $OpenBSD: vscsi.c,v 1.18 2022/12/28 21:30:16 jmc Exp $ */
/*
* Copyright (c) 2009 Claudio Jeker <claudio@openbsd.org>
@ -100,7 +100,7 @@ vscsi_dispatch(int fd, short event, void *arg)
fatal("vscsi_dispatch");
sreq->opcode = ISCSI_OP_SCSI_REQUEST;
/* XXX use untagged commands, dlg sais so */
/* XXX use untagged commands, dlg says so */
sreq->flags = ISCSI_SCSI_F_F | ISCSI_SCSI_ATTR_UNTAGGED;
if (i2t.direction == VSCSI_DIR_WRITE)
sreq->flags |= ISCSI_SCSI_F_W;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: lde_lib.c,v 1.69 2017/03/04 00:15:35 renato Exp $ */
/* $OpenBSD: lde_lib.c,v 1.70 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
@ -883,7 +883,7 @@ lde_wildcard_apply(struct map *wcard, struct fec *fec, struct lde_map *me)
}
}
/* gabage collector timer: timer to remove dead entries from the LIB */
/* garbage collector timer: timer to remove dead entries from the LIB */
/* ARGSUSED */
void

View File

@ -1,4 +1,4 @@
/* $OpenBSD: util.c,v 1.6 2022/05/06 15:51:09 claudio Exp $ */
/* $OpenBSD: util.c,v 1.7 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@ -41,7 +41,7 @@ mask2prefixlen6(struct sockaddr_in6 *sa_in6)
uint8_t *ap, *ep;
/*
* sin6_len is the size of the sockaddr so substract the offset of
* sin6_len is the size of the sockaddr so subtract the offset of
* the possibly truncated sin6_addr struct.
*/
ap = (uint8_t *)&sa_in6->sin6_addr;
@ -264,7 +264,7 @@ embedscope(struct sockaddr_in6 *sin6)
if (IN6_IS_SCOPE_EMBED(&sin6->sin6_addr)) {
memcpy(&tmp16, &sin6->sin6_addr.s6_addr[2], sizeof(tmp16));
if (tmp16 != 0) {
log_warnx("%s: address %s already has embeded scope %u",
log_warnx("%s: address %s already has embedded scope %u",
__func__, log_sockaddr(sin6), ntohs(tmp16));
}
tmp16 = htons(sin6->sin6_scope_id);

View File

@ -1,4 +1,4 @@
/* $OpenBSD: control.c,v 1.1.1.1 2018/04/27 16:14:35 eric Exp $ */
/* $OpenBSD: control.c,v 1.2 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 2017 Eric Faurot <eric@openbsd.org>
@ -67,7 +67,7 @@ control(int debug, int verbose)
control_init(LPD_SOCKET);
/* Drop priviledges. */
/* Drop privileges. */
if ((pw = getpwnam(LPD_USER)) == NULL)
fatalx("unknown user " LPD_USER);

View File

@ -1,4 +1,4 @@
/* $OpenBSD: engine.c,v 1.2 2018/09/05 17:32:56 eric Exp $ */
/* $OpenBSD: engine.c,v 1.3 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 2017 Eric Faurot <eric@openbsd.org>
@ -49,7 +49,7 @@ engine(int debug, int verbose)
fatal("%s: malloc", __func__);
gethostname(lpd_hostname, HOST_NAME_MAX + 1);
/* Drop priviledges. */
/* Drop privileges. */
if ((pw = getpwnam(LPD_USER)) == NULL)
fatal("%s: getpwnam: %s", __func__, LPD_USER);

View File

@ -1,4 +1,4 @@
/* $OpenBSD: frontend.c,v 1.2 2018/09/05 17:32:56 eric Exp $ */
/* $OpenBSD: frontend.c,v 1.3 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 2017 Eric Faurot <eric@openbsd.org>
@ -79,7 +79,7 @@ frontend(int debug, int verbose)
SPLAY_INIT(&conns);
lpr_init();
/* Drop priviledges. */
/* Drop privileges. */
if ((pw = getpwnam(LPD_USER)) == NULL)
fatal("%s: getpwnam: %s", __func__, LPD_USER);

View File

@ -1,4 +1,4 @@
/* $OpenBSD: frontend_lpr.c,v 1.3 2020/03/16 20:46:44 benno Exp $ */
/* $OpenBSD: frontend_lpr.c,v 1.4 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 2017 Eric Faurot <eric@openbsd.org>
@ -269,7 +269,7 @@ lpr_on_request(struct lpr_conn *conn, int fd, const char *hostname,
hints.ai_socktype = SOCK_STREAM;
conn->flags |= F_WAITADDRINFO;
/*
* The callback might run immediatly, so conn->ifd
* The callback might run immediately, so conn->ifd
* must be set before, to block lpr_forward().
*/
resolver_getaddrinfo(hostname, "printer", &hints,
@ -661,7 +661,7 @@ lpr_reply(struct lpr_conn *conn, const char *s)
}
/*
* Stream reponse file to the client.
* Stream response file to the client.
*/
static void
lpr_stream(struct lpr_conn *conn)

View File

@ -1,4 +1,4 @@
/* $OpenBSD: io.h,v 1.1.1.1 2018/04/27 16:14:36 eric Exp $ */
/* $OpenBSD: io.h,v 1.2 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 2017 Eric Faurot <eric@openbsd.org>
@ -50,7 +50,7 @@ int io_set_bufsize(struct io *, size_t);
void io_set_timeout(struct io *, int);
void io_set_lowat(struct io *, size_t);
/* State retreival */
/* State retrieval */
const char *io_error(struct io *);
int io_fileno(struct io *);

View File

@ -1,4 +1,4 @@
/* $OpenBSD: lp.c,v 1.3 2020/03/16 20:46:44 benno Exp $ */
/* $OpenBSD: lp.c,v 1.4 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 2017 Eric Faurot <eric@openbsd.org>
@ -822,7 +822,7 @@ lp_create(struct lp_printer *lp, int cf, size_t sz, const char *fname)
if (cf) {
/*
* Create a temporay file, but we want to avoid
* Create a temporary file, but we want to avoid
* a collision with the final cf filename.
*/
/* XXX this would require a lock on .seq */
@ -844,7 +844,7 @@ lp_create(struct lp_printer *lp, int cf, size_t sz, const char *fname)
/*
* Commit the job given by its temporary CF name.
* This is done by renaming the temporay CF file name to its final name.
* This is done by renaming the temporary CF file name to its final name.
* The functions return 0 on success, or -1 on error and set errno.
*/
int

View File

@ -1,4 +1,4 @@
/* $OpenBSD: lpd.c,v 1.2 2019/06/28 13:32:48 deraadt Exp $ */
/* $OpenBSD: lpd.c,v 1.3 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 2017 Eric Faurot <eric@openbsd.org>
@ -168,7 +168,7 @@ main(int argc, char **argv)
signal_add(&evt_sighup, NULL);
signal(SIGPIPE, SIG_IGN);
/* Fork and exec unpriviledged processes. */
/* Fork and exec unprivileged processes. */
argv = calloc(saved_argc + 3, sizeof(*argv));
if (argv == NULL)
fatal("calloc");

View File

@ -1,4 +1,4 @@
/* $OpenBSD: printer.c,v 1.3 2021/10/24 21:24:18 deraadt Exp $ */
/* $OpenBSD: printer.c,v 1.4 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 2017 Eric Faurot <eric@openbsd.org>
@ -141,7 +141,7 @@ printer(int debug, int verbose, const char *name)
/*
* Redirect stderr if not in debug mode.
* This must be done before dropping priviledges.
* This must be done before dropping privileges.
*/
if (!debug) {
fd = open(LP_LF(lp), O_WRONLY|O_APPEND);
@ -154,7 +154,7 @@ printer(int debug, int verbose, const char *name)
}
}
/* Drop priviledges. */
/* Drop privileges. */
if ((pw = getpwnam(LPD_USER)) == NULL)
fatalx("unknown user " LPD_USER);
@ -1112,7 +1112,7 @@ prn_open(void)
/*
* Open the printer device, or connect to the remote host.
* Return the printer file desciptor, or -1 on error.
* Return the printer file descriptor, or -1 on error.
*/
static int
prn_connect(void)

View File

@ -1,4 +1,4 @@
/* $OpenBSD: lp.local.h,v 1.4 2003/06/02 23:36:53 millert Exp $ */
/* $OpenBSD: lp.local.h,v 1.5 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 1983, 1993
@ -67,7 +67,7 @@
#define DROP 3 /* offset to drop characters with descenders */
/*
* Define TERMCAP if the terminal capabilites are to be used for lpq.
* Define TERMCAP if the terminal capabilities are to be used for lpq.
*/
#define TERMCAP

View File

@ -215,7 +215,7 @@ gethostloop(struct sockaddr *raddr, socklen_t salen)
}
/*
* Either the DNS adminstrator has made a configuration
* Either the DNS administrator has made a configuration
* mistake, or someone has attempted to spoof us.
*/
syslog(LOG_NOTICE, "lpd: address %s not listed for host %s",

View File

@ -1,4 +1,4 @@
/* $OpenBSD: lpd.c,v 1.65 2018/04/26 12:42:51 guenther Exp $ */
/* $OpenBSD: lpd.c,v 1.66 2022/12/28 21:30:17 jmc Exp $ */
/* $NetBSD: lpd.c,v 1.33 2002/01/21 14:42:29 wiz Exp $ */
/*
@ -189,7 +189,7 @@ main(int argc, char **argv)
case 'w':
l = strtol(optarg, &cp, 10);
if (*cp != '\0' || l < 0 || l >= INT_MAX)
errx(1, "wait time must be postive integer: %s",
errx(1, "wait time must be positive integer: %s",
optarg);
wait_time = (u_int)l;
if (wait_time < 30)

View File

@ -1,4 +1,4 @@
/* $OpenBSD: lpq.c,v 1.24 2022/12/04 23:50:51 cheloha Exp $ */
/* $OpenBSD: lpq.c,v 1.25 2022/12/28 21:30:17 jmc Exp $ */
/* $NetBSD: lpq.c,v 1.9 1999/12/07 14:54:47 mrg Exp $ */
/*
@ -98,7 +98,7 @@ main(int argc, char **argv)
case 'w':
l = strtol(optarg, &cp, 10);
if (*cp != '\0' || l < 0 || l >= INT_MAX)
errx(1, "wait time must be postive integer: %s",
errx(1, "wait time must be positive integer: %s",
optarg);
wait_time = (u_int)l;
if (wait_time < 30)

View File

@ -1,4 +1,4 @@
/* $OpenBSD: lpr.c,v 1.49 2018/04/26 12:42:51 guenther Exp $ */
/* $OpenBSD: lpr.c,v 1.50 2022/12/28 21:30:17 jmc Exp $ */
/* $NetBSD: lpr.c,v 1.19 2000/10/11 20:23:52 is Exp $ */
/*
@ -168,7 +168,7 @@ main(int argc, char **argv)
jobname = optarg;
break;
case 'P': /* specifiy printer name */
case 'P': /* specify printer name */
printer = optarg;
break;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: msdosfs_unicode.c,v 1.2 2016/12/17 16:43:30 krw Exp $ */
/* $OpenBSD: msdosfs_unicode.c,v 1.3 2022/12/28 21:30:17 jmc Exp $ */
/* $NetBSD: msdosfs_unicode.c,v 1.2 2016/02/06 14:11:58 joerg Exp $ */
/*
@ -307,7 +307,7 @@ msdosfs_unicode_foldmap[] = {
0x0398, 0x03B8, /* GREEK CAPITAL LETTER THETA */
0x0399, 0x03B9, /* GREEK CAPITAL LETTER IOTA */
0x039A, 0x03BA, /* GREEK CAPITAL LETTER KAPPA */
0x039B, 0x03BB, /* GREEK CAPITAL LETTER LAMDA */
0x039B, 0x03BB, /* GREEK CAPITAL LETTER LAMBDA */
0x039C, 0x03BC, /* GREEK CAPITAL LETTER MU */
0x039D, 0x03BD, /* GREEK CAPITAL LETTER NU */
0x039E, 0x03BE, /* GREEK CAPITAL LETTER XI */

View File

@ -1,4 +1,4 @@
/* $OpenBSD: common.h,v 1.9 2014/12/13 14:44:59 miod Exp $ */
/* $OpenBSD: common.h,v 1.10 2022/12/28 21:30:17 jmc Exp $ */
/* $NetBSD: common.h,v 1.9 2011/08/30 19:49:10 joerg Exp $ */
/*
@ -75,7 +75,7 @@ typedef enum {
struct dllist {
u_char status; /* Status byte */
struct if_info *ii; /* interface pointer */
u_char eaddr[6]; /* targets ethernet addres */
u_char eaddr[6]; /* targets ethernet address */
int ldfd; /* filedescriptor for loadfile */
u_short dl_bsz; /* Data Link Buffer Size */
int timeout; /* Timeout counter */

View File

@ -1,4 +1,4 @@
/* $OpenBSD: print.c,v 1.13 2017/07/29 07:18:03 florian Exp $ */
/* $OpenBSD: print.c,v 1.14 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 1993-96 Mats O Jansson. All rights reserved.
@ -453,7 +453,7 @@ mopPrintInfo(FILE *fd, u_char *pkt, int *idx, u_short moplen, u_char mopcode,
break;
case MOP_K_INFO_MFCT:
tmps = mopGetShort(pkt, idx);
fprintf(fd, "Maint Funcion: %04x ( ", tmps);
fprintf(fd, "Maint Function: %04x ( ", tmps);
if (tmps & 1) fprintf(fd, "Loop ");
if (tmps & 2) fprintf(fd, "Dump ");
if (tmps & 4) fprintf(fd, "Pldr ");

View File

@ -1,4 +1,4 @@
/* $OpenBSD: mopa.out.c,v 1.17 2017/10/29 08:45:53 mpi Exp $ */
/* $OpenBSD: mopa.out.c,v 1.18 2022/12/28 21:30:17 jmc Exp $ */
/*
* mopa.out - Convert a Unix format kernel into something that
@ -6,7 +6,7 @@
*
* This code was written while referring to the NetBSD/vax boot
* loader. Therefore anything that can be booted by the Vax
* should be convertable with this program.
* should be convertible with this program.
*
* If necessary, the a.out header is stripped, and the program
* segments are padded out. The BSS segment is zero filled.

View File

@ -1,10 +1,10 @@
# Copyright (c) 1993-1994 Mats O Jansson, Stockholm, Sweden
# All rights reserved.
#
# @(#) $OpenBSD: Makefile,v 1.5 2006/04/29 16:26:56 maja Exp $
# @(#) $OpenBSD: Makefile,v 1.6 2022/12/28 21:30:17 jmc Exp $
# Script (or program) that returns the machine and os types,
# or jsut edit in the name yourself.
# or just edit in the name yourself.
MD=`./mdtype`
OS=`./ostype`
REL=`cat ../common/VERSION`
@ -47,7 +47,7 @@ LEX = lex
YACC = yacc -y
MAKE = make
# Explicitly define compiliation rule since SunOS 4's make doesn't like gcc.
# Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
# Also, gcc does not remove the .o before forking 'as', which can be a
# problem if you don't own the file but can write to the directory.
.c.o:

View File

@ -1,4 +1,4 @@
# $OpenBSD: mopd-x.x.x.spec,v 1.1 1999/03/27 14:31:23 maja Exp $
# $OpenBSD: mopd-x.x.x.spec,v 1.2 2022/12/28 21:30:17 jmc Exp $
Summary: MOP (Maintenance Operations Protocol) loader daemon
Name: mopd
Version: 2.5.4
@ -16,7 +16,7 @@ filename can be given. This is the normal case for e.g. terminal servers.
If a filename isn't given mopd must know what image to load.
Upon receiving a request, mopd checks if the requested file exists in
/tftpboot/mop, the filename is normaly uppercase and with an extension of
/tftpboot/mop, the filename is normally uppercase and with an extension of
.SYS. If the filename isn't given, the ethernet address of the target is
used as filename, e.g. 08002b09f4de.SYS and it might be a soft link to
another file.

View File

@ -68,7 +68,7 @@
* Right-most bit is the Route Change Notification bit, set if the
* reservation protocol wishes to receive notification of
* a route change for the source-destination pair listed in the query.
* Notification is in the form of an unsolicitied Route Reply.
* Notification is in the form of an unsolicited Route Reply.
*/
#define RSRR_NOTIFICATION_BIT 0
/* Next bit indicates an error returning the Route Reply. */

View File

@ -1111,7 +1111,7 @@ update_neighbor(vifi_t vifi, u_int32_t addr, int msgtype, char *p,
n->al_genid = genid;
else if (n->al_genid != genid) {
logit(LOG_DEBUG, 0,
"new genid neigbor %s on vif %d [old:%x, new:%x]",
"new genid neighbor %s on vif %d [old:%x, new:%x]",
inet_fmt(addr, s1), vifi, n->al_genid, genid);
n->al_genid = genid;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: ndp.c,v 1.106 2022/12/02 15:35:35 kn Exp $ */
/* $OpenBSD: ndp.c,v 1.107 2022/12/28 21:30:17 jmc Exp $ */
/* $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $ */
/*
@ -598,7 +598,7 @@ again:;
printf("%-*.*s %-*.*s %*.*s", addrwidth, addrwidth, host_buf,
llwidth, llwidth, ether_str(sdl), ifwidth, ifwidth, ifname);
/* Print neighbor discovery specific informations */
/* Print neighbor discovery specific information */
nbi = getnbrinfo(&sin->sin6_addr, sdl->sdl_index, 1);
if (nbi) {
if (nbi->expire > now.tv_sec) {

View File

@ -1,4 +1,4 @@
/* $OpenBSD: l2tp_ctrl.c,v 1.26 2021/05/22 08:29:57 yasuoka Exp $ */
/* $OpenBSD: l2tp_ctrl.c,v 1.27 2022/12/28 21:30:17 jmc Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@ -26,7 +26,7 @@
* SUCH DAMAGE.
*/
/**@file Control connection processing functions for L2TP LNS */
/* $Id: l2tp_ctrl.c,v 1.26 2021/05/22 08:29:57 yasuoka Exp $ */
/* $Id: l2tp_ctrl.c,v 1.27 2022/12/28 21:30:17 jmc Exp $ */
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
@ -1564,7 +1564,7 @@ l2tp_ctrl_send_ZLB(l2tp_ctrl *_this)
}
/*
* Utitlity
* Utility
*/
/**

View File

@ -1,4 +1,4 @@
/* $OpenBSD: ppp.h,v 1.23 2021/03/29 03:54:39 yasuoka Exp $ */
/* $OpenBSD: ppp.h,v 1.24 2022/12/28 21:30:17 jmc Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@ -454,7 +454,7 @@ struct _npppd_ppp {
/** Physical layer */
int tunnel_type; /** PPP Tunnel Type */
uint16_t tunnel_session_id; /** Tunnel Sesion Id */
uint16_t tunnel_session_id; /** Tunnel Session Id */
uint16_t mru; /** MRU */
uint16_t peer_mru; /** Peer's MRU */
void *phy_context; /** Context of physical layer */

View File

@ -1,4 +1,4 @@
/* $OpenBSD: pptpd.c,v 1.33 2021/03/29 03:54:40 yasuoka Exp $ */
/* $OpenBSD: pptpd.c,v 1.34 2022/12/28 21:30:17 jmc Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@ -25,12 +25,12 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
/* $Id: pptpd.c,v 1.33 2021/03/29 03:54:40 yasuoka Exp $ */
/* $Id: pptpd.c,v 1.34 2022/12/28 21:30:17 jmc Exp $ */
/**@file
* This file provides a implementation of PPTP daemon. Currently it
* provides functions for PAC (PPTP Access Concentrator) only.
* $Id: pptpd.c,v 1.33 2021/03/29 03:54:40 yasuoka Exp $
* $Id: pptpd.c,v 1.34 2022/12/28 21:30:17 jmc Exp $
*/
#include <sys/types.h>
#include <sys/socket.h>
@ -661,7 +661,7 @@ pptpd_gre_io_event(int fd, short evmask, void *ctx)
if (evmask & EV_READ) {
for (;;) {
/* read till bloked */
/* read till blocked */
peerlen = sizeof(peer);
if ((sz = recvfrom(listener->sock_gre, pkt, sizeof(pkt),
0, (struct sockaddr *)&peer, &peerlen)) == -1) {

View File

@ -1,4 +1,4 @@
/* $OpenBSD: ocspcheck.c,v 1.30 2021/07/12 15:09:21 beck Exp $ */
/* $OpenBSD: ocspcheck.c,v 1.31 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 2017,2020 Bob Beck <beck@openbsd.org>
@ -379,7 +379,7 @@ ocsp_request_new_from_cert(const char *cadir, char *file, int nonce)
goto err;
}
if (request->data == NULL) {
warnx("Unable to allocte memory");
warnx("Unable to allocate memory");
goto err;
}
return request;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: util.c,v 1.3 2018/12/09 14:56:24 remi Exp $ */
/* $OpenBSD: util.c,v 1.4 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2012 Alexander Bluhm <bluhm@openbsd.org>
@ -37,7 +37,7 @@ embedscope(struct sockaddr_in6 *sin6)
if (IN6_IS_SCOPE_EMBED(&sin6->sin6_addr)) {
bcopy(&sin6->sin6_addr.s6_addr[2], &tmp16, sizeof(tmp16));
if (tmp16 != 0) {
log_warnx("embedscope: address %s already has embeded "
log_warnx("embedscope: address %s already has embedded "
"scope %u", log_sockaddr(sin6), ntohs(tmp16));
}
tmp16 = htons(sin6->sin6_scope_id);
@ -95,7 +95,7 @@ mask2prefixlen(struct sockaddr_in6 *sa_in6)
u_int l = 0;
/*
* sin6_len is the size of the sockaddr so substract the offset of
* sin6_len is the size of the sockaddr so subtract the offset of
* the possibly truncated sin6_addr struct.
*/
ap = (u_int8_t *)&sa_in6->sin6_addr;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: hello.c,v 1.25 2019/11/19 09:55:55 remi Exp $ */
/* $OpenBSD: hello.c,v 1.26 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@ -166,7 +166,7 @@ recv_hello(struct iface *iface, struct in_addr src, u_int32_t rtr_id, char *buf,
* Only the router-id is compared since the source IP on NBMA,
* broadcast and point-to-multipoint interfaces was already
* compared in find_iface() and only IPs in the same subnet
* are accepted. This is not excatly what the RFC specifies
* are accepted. This is not exactly what the RFC specifies
* but works far better.
*/
LIST_FOREACH(nbr, &iface->nbr_list, entry) {

View File

@ -1,8 +1,8 @@
$OpenBSD: BaseState.pod,v 1.1 2022/01/21 17:41:41 espie Exp $
$OpenBSD: BaseState.pod,v 1.2 2022/12/28 21:30:18 jmc Exp $
=head1 NAME
OpenBSD::BaseState - light-weight IO and system acces in pkg_add
OpenBSD::BaseState - light-weight IO and system access in pkg_add
=head1 SYNOPSIS
@ -24,7 +24,7 @@ C<fhprint>, C<fhsay> C<print>, C<say>, C<errsay>, C<fatal>, C<f>, C<system>, C<v
=item $class->can_output
hook to be overidden if need be, for programs that do not want to keep
hook to be overridden if need be, for programs that do not want to keep
writing to the terminal in the background. Returns 1 by default.
=back

View File

@ -1,4 +1,4 @@
$OpenBSD: State.pod,v 1.3 2022/02/12 09:46:19 espie Exp $
$OpenBSD: State.pod,v 1.4 2022/12/28 21:30:18 jmc Exp $
=head1 NAME
@ -118,7 +118,7 @@ treatment (such as terminal redraw/reset) is needed.
=item $state->sync_display
hook to be overriden. Called by all the print functions prior to displaying
hook to be overridden. Called by all the print functions prior to displaying
anything. To be used to write things out cleanly (e.g., wipe out a
progressmeter line prior to writing an error message, for instance)

View File

@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
# $OpenBSD: Update.pm,v 1.167 2019/12/29 10:40:16 espie Exp $
# $OpenBSD: Update.pm,v 1.168 2022/12/28 21:30:18 jmc Exp $
#
# Copyright (c) 2004-2014 Marc Espie <espie@openbsd.org>
#
@ -170,7 +170,7 @@ sub process_handle
}
# XXX all that code conveniently forgets about old versions, while
# marking them as "normal".
# there should be some error path when we consistenly fail to find
# there should be some error path when we consistently fail to find
# an equal-or-newer version in our repository, so that pkg_add has
# consistent exit codes.
if (!$state->defines('downgrade')) {

View File

@ -1,4 +1,4 @@
.\" $OpenBSD: package.5,v 1.31 2022/06/04 10:12:38 espie Exp $
.\" $OpenBSD: package.5,v 1.32 2022/12/28 21:30:18 jmc Exp $
.\" Copyright (c) 2005-2006 Marc Espie <espie@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
@ -12,7 +12,7 @@
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.Dd $Mdocdate: June 4 2022 $
.Dd $Mdocdate: December 28 2022 $
.Dt PACKAGE 5
.Os
.Sh NAME
@ -156,7 +156,7 @@ of
.Ar external
.Sm on
.Xc
Record the date of signature of a package, synthetized by
Record the date of signature of a package, synthesized by
.Xr pkg_add 1
from
.Xr signify 1
@ -208,7 +208,7 @@ to record the files's cryptographic checksum,
as a sha256 digest encoded in base64.
.Pp
.It Cm @signer
Record the signing key for a package, synthetized by
Record the signing key for a package, synthesized by
.Xr pkg_add 1
from
.Xr signify 1
@ -225,7 +225,7 @@ Added after a file entry by
to record that the entry is actually a symbolic link.
.Pp
.It Cm @url
Original location of the package, synthetized by
Original location of the package, synthesized by
.Xr pkg_add 1
during installation.
.Pp

View File

@ -1,4 +1,4 @@
/* $OpenBSD: options.c,v 1.29 2015/12/06 12:00:16 tobias Exp $ */
/* $OpenBSD: options.c,v 1.30 2022/12/28 21:30:18 jmc Exp $ */
/*
* options.c - handles option processing for PPP.
@ -268,7 +268,7 @@ static struct cmd {
{"-all", 0, noopt}, /* Don't request/allow any options (useless) */
{"noaccomp", 0, noaccomp}, /* Disable Address/Control compression */
{"-ac", 0, noaccomp}, /* Disable Address/Control compress */
{"default-asyncmap", 0, noasyncmap}, /* Disable asyncmap negoatiation */
{"default-asyncmap", 0, noasyncmap}, /* Disable asyncmap negotiation */
{"-am", 0, noasyncmap}, /* Disable asyncmap negotiation */
{"-as", 1, setasyncmap}, /* set the desired async map */
{"-d", 0, setdebug}, /* Increase debugging level */

View File

@ -1,4 +1,4 @@
/* $OpenBSD: frontend.c,v 1.41 2022/10/15 13:26:15 florian Exp $ */
/* $OpenBSD: frontend.c,v 1.42 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@ -1243,7 +1243,7 @@ build_packet(struct ra_iface *ra_iface)
/* scaled lifetime in units of 8 seconds */
sltime_plc = pref64->ltime / 8;
sltime_plc = sltime_plc << 3;
/* encode prefix lenght in lower 3 bits */
/* encode prefix length in lower 3 bits */
switch (pref64->prefixlen) {
case 96:
sltime_plc |= 0;
@ -1280,7 +1280,7 @@ build_packet(struct ra_iface *ra_iface)
!= 0) {
memcpy(ra_iface->data, buf, len);
ra_iface->datalen = len;
/* packet changed; tell engine to send new advertisments */
/* packet changed; tell engine to send new advertisements */
if (event_initialized(&ra_iface->icmp6ev->ev))
frontend_imsg_compose_engine(IMSG_UPDATE_IF, 0,
&ra_iface->if_index, sizeof(ra_iface->if_index));

View File

@ -1,4 +1,4 @@
/* $OpenBSD: rad.h,v 1.23 2022/10/15 13:26:15 florian Exp $ */
/* $OpenBSD: rad.h,v 1.24 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@ -111,7 +111,7 @@ struct ra_prefix_conf {
struct in6_addr prefix; /* prefix */
int prefixlen; /* prefix length */
uint32_t vltime; /* valid lifetime */
uint32_t pltime; /* prefered lifetime */
uint32_t pltime; /* preferred lifetime */
int lflag; /* on-link flag*/
int aflag; /* autonom. addr flag */
};

View File

@ -1,4 +1,4 @@
/* $OpenBSD: radiusd.c,v 1.27 2019/06/28 13:32:49 deraadt Exp $ */
/* $OpenBSD: radiusd.c,v 1.28 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2013 Internet Initiative Japan Inc.
@ -594,7 +594,7 @@ radiusd_access_request_answer(struct radius_query *q)
if (authen_secret == NULL) {
/*
* The module couldn't check the autheticators
* The module couldn't check the authenticators
*/
if (radius_check_response_authenticator(q->res,
q->client->secret) != 0) {
@ -1031,7 +1031,7 @@ radiusd_module_start(struct radiusd_module *module)
module->name);
} else
log_warnx("Module `%s' could not started: module "
"returned unknow message type %d", module->name,
"returned unknown message type %d", module->name,
imsg.hdr.type);
goto on_fail;
}

View File

@ -1,4 +1,4 @@
/* $OpenBSD: radiusd_radius.c,v 1.17 2019/06/28 13:32:49 deraadt Exp $ */
/* $OpenBSD: radiusd_radius.c,v 1.18 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2013 Internet Initiative Japan Inc.
@ -537,7 +537,7 @@ module_radius_req_reset_event(struct module_radius_req *req)
}
if (evtimer_add(&req->ev, &tv) != 0) {
module_radius_log(req->module, LOG_WARNING,
"Cannot proccess the request for q=%u: "
"Cannot process the request for q=%u: "
"evtimer_add() failed: %m", req->q_id);
module_radius_req_on_failure(req);
return (-1);

View File

@ -1,4 +1,4 @@
/* $OpenBSD: relay.c,v 1.254 2021/03/24 20:59:53 benno Exp $ */
/* $OpenBSD: relay.c,v 1.255 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
@ -1441,7 +1441,7 @@ relay_session(struct rsession *con)
* Call the UDP protocol-specific handler
*/
if (rlay->rl_proto->request == NULL)
fatalx("invalide UDP session");
fatalx("invalid UDP session");
if ((*rlay->rl_proto->request)(con) == -1)
relay_close(con, "session failed", 1);
return;
@ -2090,7 +2090,7 @@ relay_tls_ctx_create_proto(struct protocol *proto, struct tls_config *tls_cfg)
/*
* Set session ID context to a random value. It needs to be the
* same accross all relay processes or session caching will fail.
* same across all relay processes or session caching will fail.
*/
if (tls_config_set_session_id(tls_cfg, env->sc_conf.tls_sid,
sizeof(env->sc_conf.tls_sid)) == -1) {

View File

@ -1,4 +1,4 @@
/* $OpenBSD: relay_udp.c,v 1.49 2018/08/06 17:31:31 benno Exp $ */
/* $OpenBSD: relay_udp.c,v 1.50 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2007 - 2013 Reyk Floeter <reyk@openbsd.org>
@ -355,7 +355,7 @@ struct relay_dnshdr {
u_int8_t dns_flags0;
#define DNS_F0_QR 0x80 /* response flag */
#define DNS_F0_OPCODE 0x78 /* message type */
#define DNS_F0_AA 0x04 /* authorative answer */
#define DNS_F0_AA 0x04 /* authoritative answer */
#define DNS_F0_TC 0x02 /* truncated message */
#define DNS_F0_RD 0x01 /* recursion desired */

View File

@ -1,4 +1,4 @@
/* $OpenBSD: lockd_lock.c,v 1.10 2019/06/28 13:32:50 deraadt Exp $ */
/* $OpenBSD: lockd_lock.c,v 1.11 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2000 Manuel Bouyer.
@ -398,7 +398,7 @@ unlock(nlm4_lock *lck, int flags)
/* nothing to do */
break;
default:
syslog(LOG_NOTICE, "unknow status %d for %s",
syslog(LOG_NOTICE, "unknown status %d for %s",
fl->status, fl->client_name);
}
sigunlock();
@ -835,7 +835,7 @@ notify(const char *hostname, int state)
case LKST_DYING:
break;
default:
syslog(LOG_NOTICE, "unknow status %d for %s",
syslog(LOG_NOTICE, "unknown status %d for %s",
fl->status, fl->client_name);
}
}

View File

@ -1,4 +1,4 @@
/* $OpenBSD: cms.c,v 1.25 2022/11/29 20:41:32 job Exp $ */
/* $OpenBSD: cms.c,v 1.26 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@ -95,7 +95,7 @@ cms_parse_validate_internal(X509 **xp, const char *fn, const unsigned char *der,
}
/*
* The CMS is self-signed with a signing certifiate.
* The CMS is self-signed with a signing certificate.
* Verify that the self-signage is correct.
*/
if (!CMS_verify(cms, NULL, NULL, bio, NULL,

View File

@ -1,4 +1,4 @@
/* $OpenBSD: extern.h,v 1.164 2022/12/15 12:02:29 claudio Exp $ */
/* $OpenBSD: extern.h,v 1.165 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@ -352,7 +352,7 @@ struct aspa {
/*
* A Validated ASPA Payload (VAP) tree element.
* To ease transformation, this struct mimicks ASPA RTR PDU structure.
* To ease transformation, this struct mimics ASPA RTR PDU structure.
*/
struct vap {
RB_ENTRY(vap) entry;
@ -490,7 +490,7 @@ struct entity {
unsigned int repoid; /* repository identifier */
int talid; /* tal identifier */
enum rtype type; /* type of entity (not RTYPE_EOF) */
enum location location; /* which directroy the file lives in */
enum location location; /* which directory the file lives in */
};
TAILQ_HEAD(entityq, entity);

View File

@ -1,4 +1,4 @@
/* $OpenBSD: repo.c,v 1.40 2022/12/15 12:02:29 claudio Exp $ */
/* $OpenBSD: repo.c,v 1.41 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@ -684,7 +684,7 @@ rrdp_save_state(unsigned int id, struct rrdp_session *state)
rr = rrdp_find(id);
if (rr == NULL)
errx(1, "non-existant rrdp repo %u", id);
errx(1, "non-existent rrdp repo %u", id);
file = rrdp_state_filename(rr, 0);
temp = rrdp_state_filename(rr, 1);
@ -780,7 +780,7 @@ rrdp_clear(unsigned int id)
rr = rrdp_find(id);
if (rr == NULL)
errx(1, "non-existant rrdp repo %u", id);
errx(1, "non-existent rrdp repo %u", id);
/* remove rrdp repository contents */
remove_contents(rr->basedir);
@ -804,7 +804,7 @@ rrdp_handle_file(unsigned int id, enum publish_type pt, char *uri,
rr = rrdp_find(id);
if (rr == NULL)
errx(1, "non-existant rrdp repo %u", id);
errx(1, "non-existent rrdp repo %u", id);
if (rr->state == REPO_FAILED)
return -1;
@ -923,7 +923,7 @@ rsync_finish(unsigned int id, int ok)
}
/*
* RRDP sync finshed, either with or without success.
* RRDP sync finished, either with or without success.
*/
void
rrdp_finish(unsigned int id, int ok)
@ -967,7 +967,7 @@ http_finish(unsigned int id, enum http_result res, const char *last_mod)
tr = ta_find(id);
if (tr == NULL) {
/* not a TA fetch therefor RRDP */
/* not a TA fetch therefore RRDP */
rrdp_http_done(id, res, last_mod);
return;
}

View File

@ -1,4 +1,4 @@
/* $OpenBSD: rsync.c,v 1.45 2022/11/29 20:26:22 job Exp $ */
/* $OpenBSD: rsync.c,v 1.46 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@ -55,7 +55,7 @@ static TAILQ_HEAD(, rsync) states = TAILQ_HEAD_INITIALIZER(states);
* Return the base of a rsync URI (rsync://hostname/module). The
* caRepository provided by the RIR CAs point deeper than they should
* which would result in many rsync calls for almost every subdirectory.
* This is inefficent so instead crop the URI to a common base.
* This is inefficient so instead crop the URI to a common base.
* The returned string needs to be freed by the caller.
*/
char *

View File

@ -1,4 +1,4 @@
/* $OpenBSD: smtp_client.c,v 1.16 2021/06/14 17:58:16 eric Exp $ */
/* $OpenBSD: smtp_client.c,v 1.17 2022/12/28 21:30:18 jmc Exp $ */
/*
* Copyright (c) 2018 Eric Faurot <eric@openbsd.org>
@ -224,7 +224,7 @@ smtp_client_free(struct smtp_client *proto)
}
/*
* End the session immediatly.
* End the session immediately.
*/
static void
smtp_client_abort(struct smtp_client *proto, int err, const char *reason)

View File

@ -1,4 +1,4 @@
/* $OpenBSD: traphandler.c,v 1.23 2022/06/30 09:42:19 martijn Exp $ */
/* $OpenBSD: traphandler.c,v 1.24 2022/12/28 21:30:19 jmc Exp $ */
/*
* Copyright (c) 2014 Bret Stephen Lambert <blambert@openbsd.org>
@ -194,7 +194,7 @@ traphandler_v1translate(struct snmp_message *msg, int proxy)
return NULL;
}
/* work aronud net-snmp's snmptrap: It adds an EOC element in vblist */
/* work around net-snmp's snmptrap: It adds an EOC element in vblist */
if (vblist->be_len != 0)
vb0 = ober_unlink_elements(vblist);

View File

@ -1,4 +1,4 @@
/* $OpenBSD: syslogd.c,v 1.275 2022/06/16 18:44:43 bluhm Exp $ */
/* $OpenBSD: syslogd.c,v 1.276 2022/12/28 21:30:19 jmc Exp $ */
/*
* Copyright (c) 2014-2021 Alexander Bluhm <bluhm@genua.de>
@ -1151,7 +1151,7 @@ acceptcb(int lfd, short event, void *arg, int usetls)
log_debug("Malformed accept address");
peername = hostname_unknown;
}
log_debug("Peer addresss and port %s", peername);
log_debug("Peer address and port %s", peername);
if ((p = malloc(sizeof(*p))) == NULL) {
log_warn("allocate \"%s\"", peername);
close(fd);
@ -3302,7 +3302,7 @@ ctlconn_writecb(int fd, short event, void *arg)
}
/*
* Make space in the buffer for continous writes.
* Make space in the buffer for continuous writes.
* Set offset behind reply header to skip it
*/
*reply_text = '\0';

View File

@ -1,4 +1,4 @@
/* $OpenBSD: igrp.h,v 1.4 2000/10/03 14:31:55 ho Exp $ */
/* $OpenBSD: igrp.h,v 1.5 2022/12/28 21:30:19 jmc Exp $ */
/* Cisco IGRP definitions */
@ -16,7 +16,7 @@ struct igrphdr {
u_short ig_as; /* autonomous system number */
u_short ig_ni; /* number of subnet in local net */
u_short ig_ns; /* number of networks in AS */
u_short ig_nx; /* number of networks ouside AS */
u_short ig_nx; /* number of networks outside AS */
u_short ig_sum; /* checksum of IGRP header & data */
};

View File

@ -1,4 +1,4 @@
/* $OpenBSD: in_cksum.c,v 1.2 2018/07/06 04:49:21 dlg Exp $ */
/* $OpenBSD: in_cksum.c,v 1.3 2022/12/28 21:30:19 jmc Exp $ */
/*
* Copyright (c) 1988, 1992, 1993
@ -116,7 +116,7 @@ in_cksum_fini(uint32_t sum)
/*
* compute an IP header checksum.
* don't modifiy the packet.
* don't modify the packet.
*/
uint16_t
in_cksum(const void *addr, size_t len, uint32_t sum)

View File

@ -1,4 +1,4 @@
/* $OpenBSD: print-icmp6.c,v 1.24 2022/01/05 05:33:14 dlg Exp $ */
/* $OpenBSD: print-icmp6.c,v 1.25 2022/12/28 21:30:19 jmc Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994
@ -139,7 +139,7 @@ icmp6_print(const u_char *bp, u_int length, const u_char *bp2)
dp = (struct icmp6_hdr *)bp;
ip = (struct ip6_hdr *)bp2;
oip = (struct ip6_hdr *)(dp + 1);
/* 'ep' points to the end of avaible data. */
/* 'ep' points to the end of available data. */
ep = snapend;
if (ip->ip6_plen)
icmp6len = (ntohs(ip->ip6_plen) + sizeof(struct ip6_hdr) -
@ -234,7 +234,7 @@ icmp6_print(const u_char *bp, u_int length, const u_char *bp2)
TCHECK(oip->ip6_dst);
switch (dp->icmp6_code) {
case ICMP6_PARAMPROB_HEADER:
printf("icmp6: parameter problem errorneous - octet %u",
printf("icmp6: parameter problem erroneous - octet %u",
(u_int32_t)ntohl(dp->icmp6_pptr));
break;
case ICMP6_PARAMPROB_NEXTHEADER:
@ -545,7 +545,7 @@ icmp6_opt_print(const u_char *bp, int resid)
ip = (struct ip6_hdr *)bp2;
oip = &dp->icmp6_ip6;
#endif
/* 'ep' points to the end of avaible data. */
/* 'ep' points to the end of available data. */
ep = snapend;
ECHECK(op->nd_opt_len);
@ -727,7 +727,7 @@ mld6_print(const u_char *bp)
struct mld_hdr *mp = (struct mld_hdr *)bp;
const u_char *ep;
/* 'ep' points to the end of avaible data. */
/* 'ep' points to the end of available data. */
ep = snapend;
if ((u_char *)mp + sizeof(*mp) > ep)

View File

@ -1,4 +1,4 @@
/* $OpenBSD: print-ike.c,v 1.40 2021/12/01 18:28:46 deraadt Exp $ */
/* $OpenBSD: print-ike.c,v 1.41 2022/12/28 21:30:19 jmc Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
@ -198,7 +198,7 @@ ike_print (const u_int8_t *cp, u_int length)
if (length < sizeof (struct isakmp_header))
goto trunc;
/* 'ep' points to the end of avaible data. */
/* 'ep' points to the end of available data. */
ep = snapend;
printf("isakmp v%u.%u", ih->version >> 4, ih->version & 0xf);

View File

@ -103,7 +103,7 @@ typedef struct lwres_addr lwres_addr_t;
struct lwres_addr {
lwres_uint32_t family;
lwres_uint16_t length;
/* address folows */
/* address follows */
};
typedef struct {

View File

@ -1,4 +1,4 @@
/* $OpenBSD: print-nhrp.c,v 1.1 2020/04/15 20:19:25 remi Exp $ */
/* $OpenBSD: print-nhrp.c,v 1.2 2022/12/28 21:30:19 jmc Exp $ */
/*
* Copyright (c) 2020 Remi Locherer <remi@openbsd.org>
@ -148,7 +148,7 @@ nhrp_print(const u_char *p, u_int length)
if (vflag) {
printf(", hopcnt %u", hdr->hopcnt);
/* most significat bit must be 0 */
/* most significant bit must be 0 */
if (hdr->shtl & 0x80)
printf(" (shtl bit 7 set)");

View File

@ -1,4 +1,4 @@
/* $OpenBSD: print-rt6.c,v 1.9 2022/01/05 05:36:37 dlg Exp $ */
/* $OpenBSD: print-rt6.c,v 1.10 2022/12/28 21:30:19 jmc Exp $ */
/*
@ -55,7 +55,7 @@ rt6_print(const u_char *bp, const u_char *bp2)
dp = (struct ip6_rthdr *)bp;
len = dp->ip6r_len;
/* 'ep' points to the end of avaible data. */
/* 'ep' points to the end of available data. */
ep = snapend;
#if 0

View File

@ -1,4 +1,4 @@
/* $OpenBSD: usbdevs.c,v 1.35 2022/10/28 11:24:49 dlg Exp $ */
/* $OpenBSD: usbdevs.c,v 1.36 2022/12/28 21:30:19 jmc Exp $ */
/* $NetBSD: usbdevs.c,v 1.19 2002/02/21 00:34:31 christos Exp $ */
/*
@ -155,7 +155,7 @@ dump_device(int fd, uint8_t addr)
printf(" enabled");
if (status & UPS_SUSPEND)
printf(" supsend");
printf(" suspend");
if (status & UPS_OVERCURRENT_INDICATOR)
printf(" overcurrent");

View File

@ -1,4 +1,4 @@
/* $OpenBSD: main.c,v 1.11 2016/11/29 03:59:31 jsg Exp $ */
/* $OpenBSD: main.c,v 1.12 2022/12/28 21:30:19 jmc Exp $ */
/* $NetBSD: main.c,v 1.3 2002/07/09 10:34:16 tron Exp $ */
/*
@ -47,7 +47,7 @@ typedef struct cmd_t {
int (*c_func)(int, char **); /* called function */
} cmd_t;
/* despatch table for commands */
/* dispatch table for commands */
static cmd_t cmds[] = {
{ 1, { "useradd", NULL }, useradd },
{ 2, { "user", "add" }, useradd },

View File

@ -1,5 +1,5 @@
/* $NetBSD: loadfile.c,v 1.10 2000/12/03 02:53:04 tsutsui Exp $ */
/* $OpenBSD: loadfile_elf.c,v 1.44 2022/12/26 23:50:20 dv Exp $ */
/* $OpenBSD: loadfile_elf.c,v 1.45 2022/12/28 21:30:19 jmc Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -186,7 +186,7 @@ push_gdt(void)
/*
* Create three segment descriptors:
*
* GDT[0] : null desriptor. "Created" via memset above.
* GDT[0] : null descriptor. "Created" via memset above.
* GDT[1] (selector @ 0x8): Executable segment, for CS
* GDT[2] (selector @ 0x10): RW Data segment, for DS/ES/SS
*/

View File

@ -1,4 +1,4 @@
/* $OpenBSD: mmio.c,v 1.1 2022/11/10 11:46:39 dv Exp $ */
/* $OpenBSD: mmio.c,v 1.2 2022/12/28 21:30:19 jmc Exp $ */
/*
* Copyright (c) 2022 Dave Voutila <dv@openbsd.org>
@ -387,7 +387,7 @@ detect_cpu_mode(struct vcpu_reg_state *vrs)
log_warnx("%s: invalid cpu mode", __progname);
return (VMM_CPU_MODE_UNKNOWN);
} else {
/* Compatability Modes */
/* Compatibility Modes */
if (cs & CS_D) /* XXX Add Compat32 mode */
return (VMM_CPU_MODE_UNKNOWN);
return (VMM_CPU_MODE_COMPAT);

View File

@ -1,4 +1,4 @@
/* $OpenBSD: ns8250.c,v 1.33 2022/12/19 20:27:26 dv Exp $ */
/* $OpenBSD: ns8250.c,v 1.34 2022/12/28 21:30:19 jmc Exp $ */
/*
* Copyright (c) 2016 Mike Larkin <mlarkin@openbsd.org>
*
@ -326,7 +326,7 @@ vcpu_process_com_data(struct vm_exit *vei, uint32_t vm_id, uint32_t vcpu_id)
*
* Emulate in/out instructions to the com1 (ns8250) UART line control register
*
* Paramters:
* Parameters:
* vei: vm exit information from vmm(4) containing information on the in/out
* instruction being performed
*/

View File

@ -1,4 +1,4 @@
/* $OpenBSD: virtio.c,v 1.98 2022/12/23 19:25:22 dv Exp $ */
/* $OpenBSD: virtio.c,v 1.99 2022/12/28 21:30:19 jmc Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@ -1550,7 +1550,7 @@ vmmci_ack(unsigned int cmd)
/* FALLTHROUGH */
case VMMCI_REBOOT:
/*
* If the VM acknowleged our shutdown request, give it
* If the VM acknowledged our shutdown request, give it
* enough time to shutdown or reboot gracefully. This
* might take a considerable amount of time (running
* rc.shutdown on the VM), so increase the timeout before

Some files were not shown because too many files have changed in this diff Show More