summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/lib/libsa/strtol.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/sys/lib/libsa/strtol.c b/sys/lib/libsa/strtol.c
index b5427226c4f..a7d786a628e 100644
--- a/sys/lib/libsa/strtol.c
+++ b/sys/lib/libsa/strtol.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strtol.c,v 1.4 2003/06/02 23:28:10 millert Exp $ */
+/* $OpenBSD: strtol.c,v 1.5 2003/07/05 17:03:07 deraadt Exp $ */
/* Modified strtol() from stdlib */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -38,15 +38,12 @@
* alphabets and digits are each contiguous.
*/
long
-strtol(nptr, endptr, base)
- const char *nptr;
- char **endptr;
- register int base;
+strtol(const char *nptr, char **endptr, int base)
{
- register const char *s;
- register long acc, cutoff;
- register int c;
- register int neg, any, cutlim;
+ const char *s;
+ long acc, cutoff;
+ int c;
+ int neg, any, cutlim;
/*
* Skip white space and pick up leading +/- sign if any.