summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.c
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/agetty.c
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/agetty.c')
-rw-r--r--term-utils/agetty.c8
1 files changed, 4 insertions, 4 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);