diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-28 20:57:19 +0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-28 20:57:19 +0400 |
commit | e4dcba1c103dc28e927e004791e331aaf604383d (patch) | |
tree | a18094ecc54fcea2cb523a802e0c414c3e6f85bf /loginutils | |
parent | 776509544123c68bbc128c0fdb2f699062d294cf (diff) |
*: whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/chpasswd.c | 4 | ||||
-rw-r--r-- | loginutils/cryptpw.c | 2 | ||||
-rw-r--r-- | loginutils/getty.c | 4 | ||||
-rw-r--r-- | loginutils/login.c | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/loginutils/chpasswd.c b/loginutils/chpasswd.c index 101920c03..48cf9b130 100644 --- a/loginutils/chpasswd.c +++ b/loginutils/chpasswd.c @@ -14,8 +14,8 @@ static const char chpasswd_longopts[] ALIGN1 = ; #endif -#define OPT_ENC 1 -#define OPT_MD5 2 +#define OPT_ENC 1 +#define OPT_MD5 2 int chpasswd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int chpasswd_main(int argc UNUSED_PARAM, char **argv) diff --git a/loginutils/cryptpw.c b/loginutils/cryptpw.c index f32cbceb9..6c801f9fa 100644 --- a/loginutils/cryptpw.c +++ b/loginutils/cryptpw.c @@ -104,7 +104,7 @@ int cryptpw_main(int argc UNUSED_PARAM, char **argv) xmove_fd(fd, STDIN_FILENO); puts(pw_encrypt( - argv[0] ? argv[0] : ( + argv[0] ? argv[0] : ( /* Only mkpasswd, and only from tty, prompts. * Otherwise it is a plain read. */ (isatty(STDIN_FILENO) && applet_name[0] == 'm') diff --git a/loginutils/getty.c b/loginutils/getty.c index ab55ea4b0..76b0de449 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -387,7 +387,7 @@ static char *get_logname(char *logname, unsigned size_logname, struct options *op, struct chardata *cp) { char *bp; - char c; /* input character, full eight bits */ + char c; /* input character, full eight bits */ char ascval; /* low 7 bits of input character */ int bits; /* # of "1" bits per character */ int mask; /* mask with 1 bit up */ @@ -580,7 +580,7 @@ int getty_main(int argc UNUSED_PARAM, char **argv) chardata = init_chardata; memset(&options, 0, sizeof(options)); - options.login = _PATH_LOGIN; /* default login program */ + options.login = _PATH_LOGIN; /* default login program */ options.tty = "tty1"; /* default tty line */ options.initstring = ""; /* modem init string */ #ifdef ISSUE diff --git a/loginutils/login.c b/loginutils/login.c index 3065eaa5b..9a624df9a 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -124,7 +124,7 @@ static void run_login_script(struct passwd *pw, char *full_tty) xsetenv("LOGIN_UID", utoa(pw->pw_uid)); xsetenv("LOGIN_GID", utoa(pw->pw_gid)); xsetenv("LOGIN_SHELL", pw->pw_shell); - spawn_and_wait(t_argv); /* NOMMU-friendly */ + spawn_and_wait(t_argv); /* NOMMU-friendly */ unsetenv("LOGIN_TTY"); unsetenv("LOGIN_USER"); unsetenv("LOGIN_UID"); @@ -245,7 +245,7 @@ int login_main(int argc UNUSED_PARAM, char **argv) /* Let's find out and memorize our tty */ if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO) || !isatty(STDERR_FILENO)) - return EXIT_FAILURE; /* Must be a terminal */ + return EXIT_FAILURE; /* Must be a terminal */ full_tty = xmalloc_ttyname(STDIN_FILENO); if (!full_tty) full_tty = xstrdup("UNKNOWN"); |