Skip to contentSkip to conversation

Fix typos in comments and wall's man page

PATCH Applied Bernhard Voelker 2 participants 2 messages May 29, 2012 – Jun 5, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix typos in comments and wall's man page

Quoted 2 lines

From 08fa804da02c17f4cdb9bd89ea23c02b63afbd77 Mon Sep 17 00:00:00 2001

From: Bernhard Voelker <[email protected]>
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.

---
 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(-)
libmount/src/context_mount.c +1 -1
index 3f0001d..2642768 100644
@@ -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().
  *
term-utils/setterm.c +1 -1
index 5a65293..3083ac8 100644
@@ -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
term-utils/wall.1 +1 -1
index 56fa413..88e816c 100644
@@ -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
text-utils/more.c +1 -1
index d7d9322..7f78cdd 100644
@@ -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);
Signature · 1 line
1.7.7
maintainer Applied
#1 lore raw
Quoted 5 lines · Bernhard Voelker
 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(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com