summaryrefslogtreecommitdiff
path: root/sys/lib/libsa/strtol.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-05 17:03:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-05 17:03:08 +0000
commit0178a8369100365294f0eaec243ea5b7d0b0237b (patch)
tree1900d69d526f1d4335d200334353fac60b770e8b /sys/lib/libsa/strtol.c
parent2822dccc94ac61b249dbc2ee34e36cb1b8f6a96a (diff)
ansi
Diffstat (limited to 'sys/lib/libsa/strtol.c')
-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.