lib/pam: remove register keyword
authorJon Trulson <jon@radscan.com>
Wed, 27 Jun 2018 21:30:28 +0000 (15:30 -0600)
committerJon Trulson <jon@radscan.com>
Thu, 28 Jun 2018 03:59:18 +0000 (21:59 -0600)
cde/lib/pam/libpam/pam_framework.c
cde/lib/pam/pam_modules/unix/unix_get_authtokattr.c
cde/lib/pam/pam_modules/unix/unix_headers.h
cde/lib/pam/pam_modules/unix/unix_set_authtokattr.c
cde/lib/pam/pam_modules/unix/unix_update_authtok.c
cde/lib/pam/pam_modules/unix/unix_update_authtok_file.c
cde/lib/pam/pam_modules/unix/unix_utils.c

index f16ea4ba25e671308db949c5486d4077a66e58be..8a20ed2ea5fc557c86192004fb5667f17f8f6bcf 100644 (file)
@@ -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')
index ed7ea1545bf242339f1084c4a13cdedf3f18e2c5..7db4840e10521bbfcdf17a3774267d88628725b8 100644 (file)
@@ -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;
index dbf48715ada8e66bf10149f84e5c867b612bd792..e1df1c0e8115f08f8c8f981ffd9c00085a388522 100644 (file)
@@ -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);
index 70057e1a92e12940bacd4f9aa47af957163b849a..774c68e4ce94a59b3d2e1cd34838aa3a377f7360 100644 (file)
@@ -52,7 +52,7 @@ __set_authtoken_attr(
        int             argc,
        const char      **argv)
 {
-       register int    i;
+       int     i;
        int             retcode;
        char            *usrname;
        char            *prognamep;
index 72b35864099d26aa25c666e10f3a93f51efa9e16..a843f7989fb1400afc6913a452394c6db1a834d8 100644 (file)
@@ -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;
index 9108355f1163f03b9399bcf4867fd90d37371c4f..95b9778826532cb988816de8d3258b663c78906f 100644 (file)
@@ -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];
index e96a85e1a76ad13c85d3839cfdd8ea330f35c2ea..eb2ae75dc84b890cbb8f5168397b2b2ac28a669b 100644 (file)
@@ -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;