diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2020-01-20 13:28:59 +0100 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2020-01-20 13:28:59 +0100 |
commit | c006f4c5a25c95fd4f39dcb87271825d0c154203 (patch) | |
tree | d78658918facfb688314bf2a1ce4c10fb040504e /modules/pam_tally2/pam_tally2.c | |
parent | a12ec8b879337c15acba04fe7f5c8e75f5a91809 (diff) | |
download | pam-c006f4c5a25c95fd4f39dcb87271825d0c154203.tar.gz pam-c006f4c5a25c95fd4f39dcb87271825d0c154203.tar.bz2 pam-c006f4c5a25c95fd4f39dcb87271825d0c154203.zip |
Fix miscellaneous const issues
* libpam/pam_modutil_searchkey.c: Avoid assigning empty string literal to
non-const char *.
* modules/pam_filter/pam_filter.c: Avoid using const char **.
* modules/pam_mkhomedir/pam_mkhomedir.c: Properly cast out const for execve().
* modules/pam_namespace/pam_namespace.c: Properly cast out const from pam data.
* modules/pam_tally2/pam_tally2.c: String literal must be assigned to
const char *.
Diffstat (limited to 'modules/pam_tally2/pam_tally2.c')
-rw-r--r-- | modules/pam_tally2/pam_tally2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_tally2/pam_tally2.c b/modules/pam_tally2/pam_tally2.c index ce7f5aee..48282a33 100644 --- a/modules/pam_tally2/pam_tally2.c +++ b/modules/pam_tally2/pam_tally2.c @@ -893,7 +893,7 @@ static void print_one(const struct tallylog *tally, uid_t uid) { static int once; - char *cp = "[UNKNOWN]"; + const char *cp = "[UNKNOWN]"; time_t fail_time; struct tm *tm; struct passwd *pwent; |