[PATCH 04/10] textual: fix three misspellings of "unsupported"

Benno Schulenberg <[email protected]>
Newsgroups org.kernel.vger.util-linux
Message-ID <[email protected]>
One misspelling was fixed five years ago (in commit 760ecc3613),
but the others remained.

Fix another spello too, found with `codespell`.

Signed-off-by: Benno Schulenberg <[email protected]>
---
 sys-utils/mount.c       | 2 +-
 sys-utils/wdctl.c       | 2 +-
 term-utils/script.c     | 2 +-
 term-utils/scriptlive.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys-utils/mount.c b/sys-utils/mount.c
index 7bce9038e..8d0e9ab17 100644
--- a/sys-utils/mount.c
+++ b/sys-utils/mount.c
@@ -378,7 +378,7 @@ static size_t libmount_mesgs(struct libmnt_context *cxt, char type)
 			break;
 	}
 
-	/* messgaes */
+	/* Messages */
 	STRV_FOREACH(s, mesgs) {
 		switch (type) {
 		case 'e':
diff --git a/sys-utils/wdctl.c b/sys-utils/wdctl.c
index 4818c6ce4..ba013a3b4 100644
--- a/sys-utils/wdctl.c
+++ b/sys-utils/wdctl.c
@@ -545,7 +545,7 @@ static int read_watchdog_from_device(struct wd_device *wd)
 }
 
 
-/* Returns: <0 error, 0 success, 1 unssuported */
+/* Returns: <0 on error, 0 on success, 1 for unsupported */
 static int read_watchdog_from_sysfs(struct wd_device *wd)
 {
 	struct path_cxt *sys;
diff --git a/term-utils/script.c b/term-utils/script.c
index 59b640256..78ab3f4ca 100644
--- a/term-utils/script.c
+++ b/term-utils/script.c
@@ -829,7 +829,7 @@ int main(int argc, char **argv)
 			else if (strcmp(optarg, "always") == 0)
 				echo = 1;
 			else
-				errx(EXIT_FAILURE, _("unssuported echo mode: '%s'"), optarg);
+				errx(EXIT_FAILURE, _("unsupported echo mode: '%s'"), optarg);
 			break;
 		case 'e':
 			ctl.rc_wanted = 1;
diff --git a/term-utils/scriptlive.c b/term-utils/scriptlive.c
index af946a08d..1b0bf96cb 100644
--- a/term-utils/scriptlive.c
+++ b/term-utils/scriptlive.c
@@ -218,7 +218,7 @@ main(int argc, char *argv[])
 			else if (strcmp(optarg, "always") == 0)
 				echo = 1;
 			else
-				errx(EXIT_FAILURE, _("unssuported echo mode: '%s'"), optarg);
+				errx(EXIT_FAILURE, _("unsupported echo mode: '%s'"), optarg);
 			break;
 		case 't':
 		case 'T':
-- 
2.48.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.