summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/indent/indent.c6
-rw-r--r--usr.bin/lex/flexdef.h2
-rw-r--r--usr.bin/lex/lex.12
-rw-r--r--usr.bin/nm/nm.c4
-rw-r--r--usr.bin/sed/misc.c2
-rw-r--r--usr.bin/talk/display.c2
-rw-r--r--usr.bin/talk/invite.c2
-rw-r--r--usr.bin/tset/tset.12
8 files changed, 11 insertions, 11 deletions
diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c
index 62a82d0..d903cbb 100644
--- a/usr.bin/indent/indent.c
+++ b/usr.bin/indent/indent.c
@@ -686,7 +686,7 @@ check_type:
case semicolon: /* got a ';' */
ps.in_or_st = false;/* we are not in an initialization or
* structure declaration */
- scase = false; /* these will only need resetting in a error */
+ scase = false; /* these will only need resetting in an error */
squest = 0;
if (ps.last_token == rparen && rparen_count == 0)
ps.in_parameter_declaration = 0;
@@ -715,7 +715,7 @@ check_type:
*/
diag2(1, "Unbalanced parens");
ps.p_l_follow = 0;
- if (sp_sw) { /* this is a check for a if, while, etc. with
+ if (sp_sw) { /* this is a check for an if, while, etc. with
* unbalanced parens */
sp_sw = false;
parse(hd_type); /* dont lose the if, or whatever */
@@ -728,7 +728,7 @@ check_type:
if (!sp_sw) { /* if not if for (;;) */
parse(semicolon); /* let parser know about end of stmt */
- force_nl = true;/* force newline after a end of stmt */
+ force_nl = true;/* force newline after an end of stmt */
}
break;
diff --git a/usr.bin/lex/flexdef.h b/usr.bin/lex/flexdef.h
index 6fc168c..03651ea 100644
--- a/usr.bin/lex/flexdef.h
+++ b/usr.bin/lex/flexdef.h
@@ -368,7 +368,7 @@ extern struct hash_entry *ccltab[CCL_HASH_SIZE];
* use_read - if true (-f, -F, or -Cr) then use read() for scanner input;
* otherwise, use fread().
* yytext_is_array - if true (i.e., %array directive), then declare
- * yytext as a array instead of a character pointer. Nice and inefficient.
+ * yytext as an array instead of a character pointer. Nice and inefficient.
* do_yywrap - do yywrap() processing on EOF. If false, EOF treated as
* "no more files".
* csize - size of character set for the scanner we're generating;
diff --git a/usr.bin/lex/lex.1 b/usr.bin/lex/lex.1
index dcfc827..918039b 100644
--- a/usr.bin/lex/lex.1
+++ b/usr.bin/lex/lex.1
@@ -3132,7 +3132,7 @@ can't figure this out, and it will plan for possibly needing to back up
when it has scanned a token like "auto" and then the next character
is something other than a newline or a letter. Previously it would
then just match the "auto" rule and be done, but now it has no "auto"
-rule, only a "auto\\n" rule. To eliminate the possibility of backing up,
+rule, only an "auto\\n" rule. To eliminate the possibility of backing up,
we could either duplicate all rules but without final newlines, or,
since we never expect to encounter such an input and therefore don't
how it's classified, we can introduce one more catch-all rule, this
diff --git a/usr.bin/nm/nm.c b/usr.bin/nm/nm.c
index 590181e..7a8f086 100644
--- a/usr.bin/nm/nm.c
+++ b/usr.bin/nm/nm.c
@@ -180,8 +180,8 @@ process_file(const char *fn)
(void)printf("\n%s:\n", fn);
/*
- * first check whether this is an object file - read a object
- * header, and skip back to the beginning
+ * First check whether this is an object file - read an object
+ * header, and skip back to the beginning.
*/
if (fread((char *)&exec_head, sizeof(exec_head), (size_t)1, fp) != 1) {
warnx("%s: bad format", fn);
diff --git a/usr.bin/sed/misc.c b/usr.bin/sed/misc.c
index e04eae9..4372856 100644
--- a/usr.bin/sed/misc.c
+++ b/usr.bin/sed/misc.c
@@ -54,7 +54,7 @@ static const char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93";
#include "extern.h"
/*
- * Return a string for a regular expression error passed. This is a overkill,
+ * Return a string for a regular expression error passed. This is overkill,
* because of the silly semantics of regerror (we can never know the size of
* the buffer).
*/
diff --git a/usr.bin/talk/display.c b/usr.bin/talk/display.c
index 789467e..9b83d52 100644
--- a/usr.bin/talk/display.c
+++ b/usr.bin/talk/display.c
@@ -55,7 +55,7 @@ int curses_initialized = 0;
/*
* max HAS to be a function, it is called with
- * a argument of the form --foo at least once.
+ * an argument of the form --foo at least once.
*/
int
max(a,b)
diff --git a/usr.bin/talk/invite.c b/usr.bin/talk/invite.c
index c783161..a6e98e8 100644
--- a/usr.bin/talk/invite.c
+++ b/usr.bin/talk/invite.c
@@ -182,7 +182,7 @@ send_delete()
msg.type = DELETE;
/*
- * This is just a extra clean up, so just send it
+ * This is just an extra clean up, so just send it
* and don't wait for an answer
*/
msg.id_num = htonl(remote_id);
diff --git a/usr.bin/tset/tset.1 b/usr.bin/tset/tset.1
index 2eb0dcb..db72715 100644
--- a/usr.bin/tset/tset.1
+++ b/usr.bin/tset/tset.1
@@ -105,7 +105,7 @@ When invoked as
sets cooked and echo modes, turns off cbreak and raw modes, turns on
newline translation and resets any unset special characters to their
default values before doing the terminal initialization described above.
-This is useful after a program dies leaving a terminal in a abnormal state.
+This is useful after a program dies leaving a terminal in an abnormal state.
Note, you may have to type
.Dq Li <LF>reset<LF>
(the line-feed character is normally control-J) to get the terminal
OpenPOWER on IntegriCloud