summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2023-04-28 19:11:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2023-04-28 19:11:03 +0000
commit0b0554bfc6a91450265f23d89c425a979a42d366 (patch)
treec3ac22e69ac3dc9ca9aacfb48dafea95a2114158
parentf6a5ecf0a6ad2ae347cd6feb5ff6eefafbe8631f (diff)
downloadmandoc-0b0554bfc6a91450265f23d89c425a979a42d366.tar.gz
spelling fixes from Paul Tagliamonte via tech@ and jmc@
-rw-r--r--cgi.c2
-rw-r--r--dba_read.c2
-rw-r--r--eqn.c2
-rw-r--r--mandocdb.c2
-rw-r--r--mansearch.c2
-rw-r--r--mdoc_man.c4
-rw-r--r--roff.c6
-rw-r--r--roff_term.c4
-rw-r--r--term.c2
9 files changed, 13 insertions, 13 deletions
diff --git a/cgi.c b/cgi.c
index 76baddb6..03094fec 100644
--- a/cgi.c
+++ b/cgi.c
@@ -1097,7 +1097,7 @@ main(void)
#if HAVE_PLEDGE
/*
* The "rpath" pledge could be revoked after mparse_readfd()
- * if the file desciptor to "/footer.html" would be opened
+ * if the file descriptor to "/footer.html" would be opened
* up front, but it's probably not worth the complication
* of the code it would cause: it would require scattering
* pledge() calls in multiple low-level resp_*() functions.
diff --git a/dba_read.c b/dba_read.c
index 219778a0..6fdf84f7 100644
--- a/dba_read.c
+++ b/dba_read.c
@@ -17,7 +17,7 @@
* Function to read the mandoc database from disk into RAM,
* such that data can be added or removed.
* The interface is defined in "dba.h".
- * This file is seperate from dba.c because this also uses "dbm.h".
+ * This file is separate from dba.c because this also uses "dbm.h".
*/
#include "config.h"
diff --git a/eqn.c b/eqn.c
index 272fbf06..3afd91a6 100644
--- a/eqn.c
+++ b/eqn.c
@@ -356,7 +356,7 @@ eqn_def_find(struct eqn_node *ep)
/*
* Parse a token from the input text. The modes are:
* MODE_QUOTED: Use *ep->start as the delimiter; the token ends
- * before its next occurence. Do not interpret the token in any
+ * before its next occurrence. Do not interpret the token in any
* way and return EQN_TOK_QUOTED. All other modes behave like
* MODE_QUOTED when *ep->start is '"'.
* MODE_NOSUB: If *ep->start is a curly brace, the token ends after it;
diff --git a/mandocdb.c b/mandocdb.c
index fb12de71..a97a89e3 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -804,7 +804,7 @@ filescan(const char *infile)
* We have to do lstat(2) before realpath(3) loses
* the information whether this is a symbolic link.
* We need to know that because for symbolic links,
- * we want to use the orginal file name, while for
+ * we want to use the original file name, while for
* regular files, we want to use the real path.
*/
if (lstat(infile, &st) == -1) {
diff --git a/mansearch.c b/mansearch.c
index 3e9f3326..ce493473 100644
--- a/mansearch.c
+++ b/mansearch.c
@@ -491,7 +491,7 @@ lstlen(const char *cp, size_t sep)
/*
* Print the NUL-terminated list of NUL-terminated strings
- * into the buffer, seperating strings with sep.
+ * into the buffer, separating strings with sep.
*/
static void
lstcat(char *buf, size_t *i, const char *cp, const char *sep)
diff --git a/mdoc_man.c b/mdoc_man.c
index dcefc6e2..095c2426 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -1,4 +1,4 @@
-/* $Id$ */
+/* $Id$ */
/*
* Copyright (c) 2011-2021 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -1518,7 +1518,7 @@ mid_it(void)
Bl_stack[Bl_stack_len - 1]);
print_word(buf);
- /* Remeber to close out this .RS block later. */
+ /* Remember to close out this .RS block later. */
Bl_stack_post[Bl_stack_len - 1] = 1;
}
diff --git a/roff.c b/roff.c
index 47ea41b5..38d129ea 100644
--- a/roff.c
+++ b/roff.c
@@ -1449,7 +1449,7 @@ roff_expand(struct roff *r, struct buf *buf, int ln, int pos, char ec)
break;
/*
- * If not overriden,
+ * If not overridden,
* let \*(.T through to the formatters.
*/
@@ -2479,7 +2479,7 @@ roff_getnum(const char *v, int *pos, int *res, int flags)
* Evaluate a string comparison condition.
* The first character is the delimiter.
* Succeed if the string up to its second occurrence
- * matches the string up to its third occurence.
+ * matches the string up to its third occurrence.
* Advance the cursor after the third occurrence
* or lacking that, to the end of the line.
*/
@@ -4371,7 +4371,7 @@ roff_getformat(const struct roff *r)
* return zero and don't change the current position.
* If the control character has been set with `.cc', then let that grain
* precedence.
- * This is slighly contrary to groff, where using the non-breaking
+ * This is slightly contrary to groff, where using the non-breaking
* control character when `cc' has been invoked will cause the
* non-breaking macro contents to be printed verbatim.
*/
diff --git a/roff_term.c b/roff_term.c
index 115d850f..9a6a420f 100644
--- a/roff_term.c
+++ b/roff_term.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: roff_term.c,v 1.20 2020/09/03 17:37:06 schwarze Exp $ */
+/* $Id$ */
/*
* Copyright (c) 2010,2014,2015,2017-2020 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -175,7 +175,7 @@ roff_term_pre_po(ROFF_TERM_ARGS)
} else
ponew = polast;
- /* Remeber both the previous and the newly requested offset. */
+ /* Remember both the previous and the newly requested offset. */
polast = po;
po = ponew;
diff --git a/term.c b/term.c
index 74d9db67..8c6e62fb 100644
--- a/term.c
+++ b/term.c
@@ -194,7 +194,7 @@ term_flushln(struct termp *p)
break;
/*
- * At the location of an automtic line break, input
+ * At the location of an automatic line break, input
* space characters are consumed by the line break.
*/