From: job Date: Tue, 18 Oct 2022 09:30:29 +0000 (+0000) Subject: Fix some spelling errors X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9c5d31d7c17a2cda5cb757bee3ac1d51b13c9142;p=openbsd Fix some spelling errors Thanks Marco D'Itri for spotting them OK claudio@ --- diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index 016809272f2..189e518b38d 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.286 2022/10/17 16:51:36 claudio Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.287 2022/10/18 09:30:29 job Exp $ */ /* * Copyright (c) 2003 Henning Brauer @@ -1374,7 +1374,7 @@ print_afi(u_char *p, uint8_t len) /* safi, 1 byte */ memcpy(&safi, p, sizeof(safi)); if (afi2aid(afi, safi, &aid) == -1) - printf("unkown afi %u safi %u", afi, safi); + printf("unknown afi %u safi %u", afi, safi); else printf("%s", aid2str(aid)); } @@ -1498,7 +1498,7 @@ show_mrt_capabilities(u_char *p, uint16_t len) len -= capa_len; } if (len != 0) { - printf("length missmatch while capability parsing"); + printf("length mismatch while capability parsing"); return (-1); } return (totlen); diff --git a/usr.sbin/bgpctl/mrtparser.c b/usr.sbin/bgpctl/mrtparser.c index 8d9ae8f8235..77fb54c614a 100644 --- a/usr.sbin/bgpctl/mrtparser.c +++ b/usr.sbin/bgpctl/mrtparser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mrtparser.c,v 1.18 2022/08/17 15:16:12 claudio Exp $ */ +/* $OpenBSD: mrtparser.c,v 1.19 2022/10/18 09:30:29 job Exp $ */ /* * Copyright (c) 2011 Claudio Jeker * @@ -126,7 +126,7 @@ mrt_parse(int fd, struct mrt_parser *p, int verbose) case MSG_PROTOCOL_OSPFV3_ET: case MSG_PROTOCOL_OSPFV3: if (verbose) - printf("unsuported MRT type %d\n", + printf("unsupported MRT type %d\n", ntohs(h.type)); break; case MSG_TABLE_DUMP: @@ -443,7 +443,7 @@ mrt_parse_v2_rib(struct mrt_hdr *hdr, void *msg, int verbose) goto fail; break; default: - errx(1, "unknonw subtype %hd", ntohs(hdr->subtype)); + errx(1, "unknown subtype %hd", ntohs(hdr->subtype)); } /* adjust length */ diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c index a398b97f0c4..caad0822b5f 100644 --- a/usr.sbin/bgpd/kroute.c +++ b/usr.sbin/bgpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.300 2022/09/21 21:12:03 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.301 2022/10/18 09:30:29 job Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -1084,7 +1084,7 @@ kr_net_redist_add(struct ktable *kt, struct network_config *net, } if (send_network(IMSG_NETWORK_ADD, net, attr) == -1) - log_warnx("%s: faild to send network update", __func__); + log_warnx("%s: failed to send network update", __func__); return 1; } @@ -1110,7 +1110,7 @@ kr_net_redist_del(struct ktable *kt, struct network_config *net, int dynamic) free(r); if (send_network(IMSG_NETWORK_REMOVE, net, NULL) == -1) - log_warnx("%s: faild to send network removal", __func__); + log_warnx("%s: failed to send network removal", __func__); } int diff --git a/usr.sbin/bgpd/rtr.c b/usr.sbin/bgpd/rtr.c index 4775b6969f1..0960f24c16a 100644 --- a/usr.sbin/bgpd/rtr.c +++ b/usr.sbin/bgpd/rtr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtr.c,v 1.7 2022/08/31 11:25:36 claudio Exp $ */ +/* $OpenBSD: rtr.c,v 1.8 2022/10/18 09:30:29 job Exp $ */ /* * Copyright (c) 2020 Claudio Jeker @@ -156,7 +156,7 @@ rtr_main(int debug, int verbose) /* run the expire timeout every EXPIRE_TIMEOUT seconds */ timeout = timer_nextduein(&expire_timer, getmonotime()); if (timeout == -1) - fatalx("roa-set expire timer no longer runnning"); + fatalx("roa-set expire timer no longer running"); memset(pfd, 0, sizeof(struct pollfd) * pfd_elms);