From: Bernhard Voelker <mail@bernhard-voelker.de>
To: "util-linux@vger.kernel.org" <util-linux@vger.kernel.org>
Subject: [PATCH] Fix typos in comments and wall's man page
Date: Tue, 29 May 2012 19:10:03 +0200 [thread overview]
Message-ID: <4FC502EB.70301@bernhard-voelker.de> (raw)
>From 08fa804da02c17f4cdb9bd89ea23c02b63afbd77 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <mail@bernhard-voelker.de>
Date: Tue, 29 May 2012 19:06:50 +0200
Subject: [PATCH] Fix typos in comments and wall's man page
Culprits identified again by (newer) misspellings:
$ git ls-files | misspellings -f - | grep -v '^po/'
* wall: Fix typo in man page.
* Fix typos in source code comments.
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
---
libmount/src/context_mount.c | 2 +-
term-utils/setterm.c | 2 +-
term-utils/wall.1 | 2 +-
text-utils/more.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c
index 3f0001d..2642768 100644
--- a/libmount/src/context_mount.c
+++ b/libmount/src/context_mount.c
@@ -613,7 +613,7 @@ int mnt_context_prepare_mount(struct libmnt_context *cxt)
* Note that this function could be called only once. If you want to mount
* another source or target than you have to call mnt_reset_context().
*
- * If you want to call mount(2) for the same source and target with a diffrent
+ * If you want to call mount(2) for the same source and target with a different
* mount flags or fstype then call mnt_context_reset_status() and then try
* again mnt_context_do_mount().
*
diff --git a/term-utils/setterm.c b/term-utils/setterm.c
index 5a65293..3083ac8 100644
--- a/term-utils/setterm.c
+++ b/term-utils/setterm.c
@@ -68,7 +68,7 @@
* Semantics:
*
* Setterm writes to standard output a character string that will
- * invoke the specified terminal capabilities. Where possibile
+ * invoke the specified terminal capabilities. Where possible
* terminfo is consulted to find the string to use. Some options
* however do not correspond to a terminfo capability. In this case if
* the terminal type is "con*", or "linux*" the string that invokes
diff --git a/term-utils/wall.1 b/term-utils/wall.1
index 56fa413..88e816c 100644
--- a/term-utils/wall.1
+++ b/term-utils/wall.1
@@ -56,7 +56,7 @@ program is suid or sgid.
.SH OPTIONS
.TP
\fB\-n\fR, \fB\-\-nobanner\fR
-Supress banner
+Suppress banner
.TP
\fB\-t\fR, \fB\-\-timeout\fR \fItimeout\fR
Write
diff --git a/text-utils/more.c b/text-utils/more.c
index d7d9322..7f78cdd 100644
--- a/text-utils/more.c
+++ b/text-utils/more.c
@@ -846,7 +846,7 @@ int get_line(register FILE *f, int *length)
mbstate_t state, state_bak; /* Current status of the stream. */
char mbc[MB_LEN_MAX]; /* Buffer for one multibyte char. */
size_t mblength; /* Byte length of multibyte char. */
- size_t mbc_pos = 0; /* Postion of the MBC. */
+ size_t mbc_pos = 0; /* Position of the MBC. */
int use_mbc_buffer_flag = 0; /* If 1, mbc has data. */
int break_flag = 0; /* If 1, exit while(). */
long file_pos_bak = Ftell (f);
--
1.7.7
next reply other threads:[~2012-05-29 17:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-29 17:10 Bernhard Voelker [this message]
2012-06-05 12:38 ` [PATCH] Fix typos in comments and wall's man page Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FC502EB.70301@bernhard-voelker.de \
--to=mail@bernhard-voelker.de \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.