diff options
author | Karl Berry <karl@freefriends.org> | 2019-11-03 19:08:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-11-03 19:08:40 +0000 |
commit | 2d72ac9d3223fdffbdbb31f3eba86be6c7aac2d5 (patch) | |
tree | 0b6edd6d4c258661448a1d9188722629a6d09d10 /Build | |
parent | d8b36a4ed5d7ea7d87168e3eaff7c0af276c7069 (diff) |
remove register declarations
git-svn-id: svn://tug.org/texlive/trunk@52624 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/progname.c | 14 |
2 files changed, 12 insertions, 7 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index 655ddd36cb9..f184c7e3a79 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,8 @@ +2019-11-03 Karl Berry <karl@tug.org> + + * progname.c: remove nowadays-useless register declarations. + Mentioned by Doug McKenna. + 2019-10-10 Karl Berry <karl@tug.org> * texmf.cnf (LUAINPUTS.luahblatex{,-dev}): define a la other diff --git a/Build/source/texk/kpathsea/progname.c b/Build/source/texk/kpathsea/progname.c index 545f4439250..04fc12ed62b 100644 --- a/Build/source/texk/kpathsea/progname.c +++ b/Build/source/texk/kpathsea/progname.c @@ -85,7 +85,7 @@ static void ReadSymLink (char *fn, char *sym) { - register int n = readlink (fn, sym, BSIZE); + int n = readlink (fn, sym, BSIZE); if (n < 0) { perror (fn); exit (1); @@ -97,10 +97,10 @@ ReadSymLink (char *fn, char *sym) /* Strip first component from S, and also return it in a static buffer. */ static char * -StripFirst (register char *s) +StripFirst (char *s) { static char buf[BSIZE]; - register char *s1; + char *s1; /* Find the end of the first path element */ for (s1 = s; *s1 && (*s1 != '/' || s1 == s); s1++) @@ -125,10 +125,10 @@ StripFirst (register char *s) /* Strip last component from S, and also return it in a static buffer. */ static char * -StripLast (register char *s) +StripLast (char *s) { static char buf[BSIZE]; - register char *s1; + char *s1; for (s1 = s + strlen (s); s1 > s && *s1 != '/'; s1--) ; @@ -142,9 +142,9 @@ StripLast (register char *s) /* Copy first path element from B to A, removing it from B. */ static void -CopyFirst (register char *a, char *b) +CopyFirst (char *a, char *b) { - register int length = strlen (a); + int length = strlen (a); if (length > 0 && a[length - 1] != '/') { a[length] = '/'; |