From 904a48b8229911fd59f4dbc98b010ed2380c319f Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Wed, 27 Jun 2018 15:30:28 -0600 Subject: [PATCH] lib/pam: remove register keyword --- cde/lib/pam/libpam/pam_framework.c | 2 +- cde/lib/pam/pam_modules/unix/unix_get_authtokattr.c | 2 +- cde/lib/pam/pam_modules/unix/unix_headers.h | 2 +- cde/lib/pam/pam_modules/unix/unix_set_authtokattr.c | 2 +- cde/lib/pam/pam_modules/unix/unix_update_authtok.c | 2 +- cde/lib/pam/pam_modules/unix/unix_update_authtok_file.c | 2 +- cde/lib/pam/pam_modules/unix/unix_utils.c | 6 +++--- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cde/lib/pam/libpam/pam_framework.c b/cde/lib/pam/libpam/pam_framework.c index f16ea4ba..8a20ed2e 100644 --- a/cde/lib/pam/libpam/pam_framework.c +++ b/cde/lib/pam/libpam/pam_framework.c @@ -1696,7 +1696,7 @@ mal_formed: static char * read_next_token(char **cpp) { - register char *cp = *cpp; + char *cp = *cpp; char *start; while (*cp == ' ' || *cp == '\t') diff --git a/cde/lib/pam/pam_modules/unix/unix_get_authtokattr.c b/cde/lib/pam/pam_modules/unix/unix_get_authtokattr.c index ed7ea154..7db4840e 100644 --- a/cde/lib/pam/pam_modules/unix/unix_get_authtokattr.c +++ b/cde/lib/pam/pam_modules/unix/unix_get_authtokattr.c @@ -70,7 +70,7 @@ __get_authtoken_attr( int argc, const char **argv) { - register int k; + int k; char value[PAM_MAX_ATTR_SIZE]; int retcode; long lstchg; diff --git a/cde/lib/pam/pam_modules/unix/unix_headers.h b/cde/lib/pam/pam_modules/unix/unix_headers.h index dbf48715..e1df1c0e 100644 --- a/cde/lib/pam/pam_modules/unix/unix_headers.h +++ b/cde/lib/pam/pam_modules/unix/unix_headers.h @@ -180,7 +180,7 @@ extern int key_setnet(); extern int ck_perm(pam_handle_t *, int, char *, struct passwd **, struct spwd **, int *, void **, uid_t, int, int); -extern char *attr_match(register char *, register char *); +extern char *attr_match(char *, char *); extern char *getloginshell(pam_handle_t *, char *, int, int); extern char *gethomedir(pam_handle_t *, char *, int); extern char *getfingerinfo(pam_handle_t *, char *, int); diff --git a/cde/lib/pam/pam_modules/unix/unix_set_authtokattr.c b/cde/lib/pam/pam_modules/unix/unix_set_authtokattr.c index 70057e1a..774c68e4 100644 --- a/cde/lib/pam/pam_modules/unix/unix_set_authtokattr.c +++ b/cde/lib/pam/pam_modules/unix/unix_set_authtokattr.c @@ -52,7 +52,7 @@ __set_authtoken_attr( int argc, const char **argv) { - register int i; + int i; int retcode; char *usrname; char *prognamep; diff --git a/cde/lib/pam/pam_modules/unix/unix_update_authtok.c b/cde/lib/pam/pam_modules/unix/unix_update_authtok.c index 72b35864..a843f798 100644 --- a/cde/lib/pam/pam_modules/unix/unix_update_authtok.c +++ b/cde/lib/pam/pam_modules/unix/unix_update_authtok.c @@ -516,7 +516,7 @@ verify_old_passwd(pamh, repository, real_rep, domain, int debug; int nowarn; { - register int now; + int now; int done = 0; int retcode; char *prognamep; diff --git a/cde/lib/pam/pam_modules/unix/unix_update_authtok_file.c b/cde/lib/pam/pam_modules/unix/unix_update_authtok_file.c index 9108355f..95b97788 100644 --- a/cde/lib/pam/pam_modules/unix/unix_update_authtok_file.c +++ b/cde/lib/pam/pam_modules/unix/unix_update_authtok_file.c @@ -61,7 +61,7 @@ update_authtok_file(pamh, field, data, unix_pwd, privileged, nowarn) char *prognamep; char *usrname; struct stat buf; - register int found = 0; + int found = 0; FILE *tsfp, *spfp; struct spwd unix_sp; char spbuf[1024]; diff --git a/cde/lib/pam/pam_modules/unix/unix_utils.c b/cde/lib/pam/pam_modules/unix/unix_utils.c index e96a85e1..eb2ae75d 100644 --- a/cde/lib/pam/pam_modules/unix/unix_utils.c +++ b/cde/lib/pam/pam_modules/unix/unix_utils.c @@ -384,7 +384,7 @@ ck_perm(pamh, repository, domain, pwd, shpwd, privileged, passwd_res, uid, char * attr_match(s1, s2) - register char *s1, *s2; + char *s1, *s2; { while (*s1 == *s2++) if (*s1++ == '=') @@ -407,7 +407,7 @@ attr_match(s1, s2) int attr_find(s1, s2) - register char *s1, *s2[]; + char *s1, *s2[]; { int i; char *sa, *sb; @@ -467,7 +467,7 @@ setup_attr(dest_attr, k, attr, value) #ifdef PAM_NISPLUS static char * spskip(p) - register char *p; + char *p; { while (*p && *p != ':' && *p != '\n') ++p; -- 2.25.1