summaryrefslogtreecommitdiffstats
path: root/compat/strtoul.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-14 06:42:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-14 06:42:58 (GMT)
commitc9376306301e578615cfee52d2121f78cb31a225 (patch)
treeb80d507267bc38923d21ef904af4a227e2f4909d /compat/strtoul.c
parent343b0349d4d4b41ca86832298dead909b1ef055d (diff)
downloadtcl-c9376306301e578615cfee52d2121f78cb31a225.zip
tcl-c9376306301e578615cfee52d2121f78cb31a225.tar.gz
tcl-c9376306301e578615cfee52d2121f78cb31a225.tar.bz2
Remove "register" keyword in various places. Also add some type-casts to help C++ compatibility.
Diffstat (limited to 'compat/strtoul.c')
-rw-r--r--compat/strtoul.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/compat/strtoul.c b/compat/strtoul.c
index e37eb05..bf16f7a 100644
--- a/compat/strtoul.c
+++ b/compat/strtoul.c
@@ -62,9 +62,9 @@ strtoul(
* hex, "0" means octal, anything else means
* decimal. */
{
- register const char *p;
- register unsigned long int result = 0;
- register unsigned digit;
+ const char *p;
+ unsigned long int result = 0;
+ unsigned digit;
int anyDigits = 0;
int negative=0;
int overflow=0;