From 9e93004171eb0c4c288051b2d7bb37f97a0ae430 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sun, 29 May 2016 23:11:53 +0200 Subject: misc: Fix various typos Fix various typos in error messages, warnings, debug strings, comments and names of static functions. Signed-off-by: Sebastian Rasmussen --- term-utils/agetty.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'term-utils/agetty.c') 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); -- cgit v1.2.3-55-g7522