diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2011-10-26 23:56:54 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2011-10-26 23:56:54 +0000 |
commit | 1814aec611a5f9e03eceee81237ad3a3f51c954a (patch) | |
tree | 9f0ab1c38d5fbdd5f8ed8f792bf5649bcd50a416 /libpam_misc | |
parent | fc772e7236a7aea9c9c26b0be2ee6f3ed8ae444a (diff) | |
download | pam-1814aec611a5f9e03eceee81237ad3a3f51c954a.tar.gz pam-1814aec611a5f9e03eceee81237ad3a3f51c954a.tar.bz2 pam-1814aec611a5f9e03eceee81237ad3a3f51c954a.zip |
Fix whitespace issues
Cleanup trailing whitespaces, indentation that uses spaces before tabs,
and blank lines at EOF. Make the project free of warnings reported by
git diff --check 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD
Diffstat (limited to 'libpam_misc')
-rw-r--r-- | libpam_misc/Makefile.am | 1 | ||||
-rw-r--r-- | libpam_misc/include/security/pam_misc.h | 4 | ||||
-rw-r--r-- | libpam_misc/misc_conv.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/libpam_misc/Makefile.am b/libpam_misc/Makefile.am index 7cc8812a..a521b60d 100644 --- a/libpam_misc/Makefile.am +++ b/libpam_misc/Makefile.am @@ -20,4 +20,3 @@ libpam_misc_la_LIBADD = $(top_builddir)/libpam/libpam.la lib_LTLIBRARIES = libpam_misc.la libpam_misc_la_SOURCES = help_env.c misc_conv.c - diff --git a/libpam_misc/include/security/pam_misc.h b/libpam_misc/include/security/pam_misc.h index 07578e64..fca2422c 100644 --- a/libpam_misc/include/security/pam_misc.h +++ b/libpam_misc/include/security/pam_misc.h @@ -6,8 +6,8 @@ #include <security/pam_appl.h> #include <security/pam_client.h> -#ifdef __cplusplus -extern "C" { +#ifdef __cplusplus +extern "C" { #endif /* __cplusplus */ /* include some useful macros */ diff --git a/libpam_misc/misc_conv.c b/libpam_misc/misc_conv.c index 3f82de1b..3f74eeae 100644 --- a/libpam_misc/misc_conv.c +++ b/libpam_misc/misc_conv.c @@ -180,7 +180,7 @@ static int read_string(int echo, const char *prompt, char **retstr) if (have_term) nc = read(STDIN_FILENO, line, INPUTSIZE-1); else /* we must read one line only */ - for (nc = 0; nc < INPUTSIZE-1 && (nc?line[nc-1]:0) != '\n'; + for (nc = 0; nc < INPUTSIZE-1 && (nc?line[nc-1]:0) != '\n'; nc++) { int rv; if ((rv=read(STDIN_FILENO, line+nc, 1)) != 1) { |