diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2011-05-30 19:36:56 +0200 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2011-05-30 19:36:56 +0200 |
commit | a1950248ee3fb08374b5733afc3d9f123634319b (patch) | |
tree | 1603c153ab6dbc46c620fc58ea2cca06b2ec8efb /modules/pam_timestamp/pam_timestamp.c | |
parent | 9ac26f8f0a23a396e3cec5c1949fb2f90a097643 (diff) | |
download | pam-a1950248ee3fb08374b5733afc3d9f123634319b.tar.gz pam-a1950248ee3fb08374b5733afc3d9f123634319b.tar.bz2 pam-a1950248ee3fb08374b5733afc3d9f123634319b.zip |
2011-05-30 Thorsten Kukuk <kukuk@thkukuk.de>
* modules/pam_timestamp/pam_timestamp.c (main): Remove unsused
variable pretval.
* modules/pam_stress/pam_stress.c (converse): **message is const.
(stress_get_password): pmsg is const.
(pam_sm_chauthtok): Likewise.
* libpam/pam_item.c (pam_get_user): Make pmsg const and remove
casts.
Diffstat (limited to 'modules/pam_timestamp/pam_timestamp.c')
-rw-r--r-- | modules/pam_timestamp/pam_timestamp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/pam_timestamp/pam_timestamp.c b/modules/pam_timestamp/pam_timestamp.c index 26876769..7bcf3d12 100644 --- a/modules/pam_timestamp/pam_timestamp.c +++ b/modules/pam_timestamp/pam_timestamp.c @@ -684,7 +684,7 @@ struct pam_module _pam_timestamp_modstruct = { int main(int argc, char **argv) { - int i, pretval = -1, retval = 0, dflag = 0, kflag = 0; + int i, retval = 0, dflag = 0, kflag = 0; const char *target_user = NULL, *user = NULL, *tty = NULL; struct passwd *pwd; struct timeval tv; @@ -826,7 +826,6 @@ main(int argc, char **argv) select(STDOUT_FILENO + 1, NULL, NULL, &write_fds, &tv); - pretval = retval; retval = 0; } } while (dflag > 0); |