diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-24 07:44:01 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-24 15:30:16 +0000 |
commit | 290b7e0632921ca0c204eb91c8ebfd253813f137 (patch) | |
tree | 4a8ff8a4bf17a7c5f01f8d09f1ffe1e294351818 /soltools/mkdepend/include.c | |
parent | e07cefb4f7ba39d59d25815e208ed61269079142 (diff) |
remove use of register keyword in C files
C compilers have been ignoring it for the last decade
Change-Id: I42918263121dd189bab9d27077798b779b9e8da1
Reviewed-on: https://gerrit.libreoffice.org/9873
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'soltools/mkdepend/include.c')
-rw-r--r-- | soltools/mkdepend/include.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/soltools/mkdepend/include.c b/soltools/mkdepend/include.c index b3448d90c65d..5b0a54af0c19 100644 --- a/soltools/mkdepend/include.c +++ b/soltools/mkdepend/include.c @@ -45,11 +45,11 @@ extern char *notdotdot[ ]; extern boolean show_where_not; extern boolean warn_multiple; -struct inclist *inc_path(register char *file, register char *include, boolean dot, struct IncludesCollection* incCollection) +struct inclist *inc_path(char *file, char *include, boolean dot, struct IncludesCollection* incCollection) { static char path[ BUFSIZ ]; - register char **pp, *p; - register struct inclist *ip; + char **pp, *p; + struct inclist *ip; struct stat st; boolean found = FALSE; (void)dot; @@ -144,8 +144,8 @@ int exists_path(incCollection, path) void remove_dotdot(path) char *path; { - register char *end, *from, *to, **cp; - char *components[ MAXFILES ], + char *end, *from, *to, **cp; + char *components[ MAXFILES ], newpath[ BUFSIZ ]; boolean component_copied; @@ -211,7 +211,7 @@ void remove_dotdot(path) } int isdot(p) - register char *p; + char *p; { if(p && p[0] == '.' && p[1] == '\0') return(TRUE); @@ -219,7 +219,7 @@ int isdot(p) } int isdotdot(p) - register char *p; + char *p; { if(p && p[0] == '.' && p[1] == '.' && p[2] == '\0') return(TRUE); @@ -227,7 +227,7 @@ int isdotdot(p) } int issymbolic(dir, component) - register char *dir, *component; + char *dir, *component; { #ifdef S_IFLNK struct stat st; @@ -252,9 +252,9 @@ int issymbolic(dir, component) * Add an include file to the list of those included by 'file'. */ struct inclist *newinclude(newfile, incstring) - register char *newfile, *incstring; + char *newfile, *incstring; { - register struct inclist *ip; + struct inclist *ip; /* * First, put this file on the global list of include files. @@ -273,9 +273,9 @@ struct inclist *newinclude(newfile, incstring) } void included_by(ip, newfile) - register struct inclist *ip, *newfile; + struct inclist *ip, *newfile; { - register int i; + int i; if (ip == NULL) return; @@ -319,7 +319,7 @@ void included_by(ip, newfile) void inc_clean (void) { - register struct inclist *ip; + struct inclist *ip; for (ip = inclist; ip < inclistp; ip++) { ip->i_marked = FALSE; |