summaryrefslogtreecommitdiffstats
path: root/term-utils
diff options
context:
space:
mode:
authorSebastian Rasmussen2016-05-29 23:11:53 +0200
committerSebastian Rasmussen2016-05-31 23:40:21 +0200
commit9e93004171eb0c4c288051b2d7bb37f97a0ae430 (patch)
tree369493906bb3c1c6f2554609c737ada0230f4b2e /term-utils
parentdocs: Fix various typos (diff)
downloadkernel-qcow2-util-linux-9e93004171eb0c4c288051b2d7bb37f97a0ae430.tar.gz
kernel-qcow2-util-linux-9e93004171eb0c4c288051b2d7bb37f97a0ae430.tar.xz
kernel-qcow2-util-linux-9e93004171eb0c4c288051b2d7bb37f97a0ae430.zip
misc: Fix various typos
Fix various typos in error messages, warnings, debug strings, comments and names of static functions. Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
Diffstat (limited to 'term-utils')
-rw-r--r--term-utils/agetty.c8
-rw-r--r--term-utils/setterm.c4
-rw-r--r--term-utils/wall.c2
-rw-r--r--term-utils/write.c2
4 files changed, 8 insertions, 8 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index d12a3f1c7..090ef9180 100644
--- a/term-utils/agetty.c
+++ b/term-utils/agetty.c
@@ -389,7 +389,7 @@ int main(int argc, char **argv)
tcsetpgrp(STDIN_FILENO, getpid());
- /* Default is to follow the current line speend and then default to 9600 */
+ /* Default is to follow the current line speed and then default to 9600 */
if ((options.flags & F_VCONSOLE) == 0 && options.numspeed == 0) {
options.speeds[options.numspeed++] = bcode("9600");
options.flags |= F_KEEPSPEED;
@@ -559,7 +559,7 @@ static char *replace_u(char *str, char *username)
log_err(_("failed to allocate memory: %m"));
if (p != str) {
- /* copy chars befor \u */
+ /* copy chars before \u */
memcpy(tp, str, p - str);
tp += p - str;
}
@@ -1043,7 +1043,7 @@ static void open_tty(char *tty, struct termios *tp, struct options *op)
debug("TIOCNOTTY ioctl failed\n");
/*
- * Let's close all file decriptors before vhangup
+ * Let's close all file descriptors before vhangup
* https://lkml.org/lkml/2012/6/5/145
*/
close(fd);
@@ -1268,7 +1268,7 @@ static void termio_init(struct options *op, struct termios *tp)
/*
* Note that the speed is stored in the c_cflag termios field, so we have
- * set the speed always when the cflag se reseted.
+ * set the speed always when the cflag is reset.
*/
cfsetispeed(tp, ispeed);
cfsetospeed(tp, ospeed);
diff --git a/term-utils/setterm.c b/term-utils/setterm.c
index 232f38948..13836e99a 100644
--- a/term-utils/setterm.c
+++ b/term-utils/setterm.c
@@ -166,10 +166,10 @@ struct setterm_control {
int opt_bl_min; /* blank screen */
int opt_blength_l; /* bell duration in milliseconds */
int opt_bfreq_f; /* bell frequency in Hz */
- int opt_sn_num; /* console number to be snapshoted */
+ int opt_sn_num; /* console number to be snapshot */
char *opt_sn_name; /* path to write snap */
char *in_device; /* device to snapshot */
- int opt_msglevel_num; /* printk() loging level */
+ int opt_msglevel_num; /* printk() logging level */
int opt_ps_mode; /* powersave mode */
int opt_pd_min; /* powerdown time */
int opt_rt_len; /* regular tab length */
diff --git a/term-utils/wall.c b/term-utils/wall.c
index 1253d32cd..4ad94d808 100644
--- a/term-utils/wall.c
+++ b/term-utils/wall.c
@@ -217,7 +217,7 @@ static void buf_printf(struct buffer *bs, const char *fmt, ...)
rc = vsnprintf(bs->data + bs->used, limit, fmt, ap);
va_end(ap);
- if (rc >= 0 && (size_t) rc >= limit) { /* not enoght, enlarge */
+ if (rc >= 0 && (size_t) rc >= limit) { /* not enough, enlarge */
buf_enlarge(bs, (size_t)rc + 1);
limit = bs->sz - bs->used;
va_start(ap, fmt);
diff --git a/term-utils/write.c b/term-utils/write.c
index 14594f5d9..7c1523136 100644
--- a/term-utils/write.c
+++ b/term-utils/write.c
@@ -37,7 +37,7 @@
* Wed Jun 22 21:41:56 1994, faith@cs.unc.edu:
* Added fix from Mike Grupenhoff (kashmir@umiacs.umd.edu)
* Mon Jul 1 17:01:39 MET DST 1996, janl@math.uio.no:
- * - Added fix from David.Chapell@mail.trincoll.edu enabeling daemons
+ * - Added fix from David.Chapell@mail.trincoll.edu enabling daemons
* to use write.
* - ANSIed it since I was working on it anyway.
* 1999-02-22 Arkadiusz Miƛkiewicz <misiek@pld.ORG.PL>