summaryrefslogtreecommitdiffstats
path: root/sys/lib
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-07-05 17:03:07 +0000
committerderaadt <deraadt@openbsd.org>2003-07-05 17:03:07 +0000
commit276193e9af451ec04709e36c88ed222e45ef853a (patch)
tree4861750f462310fbb55e123183498b388dbf361c /sys/lib
parentdo not make bad machine@ links (diff)
downloadwireguard-openbsd-276193e9af451ec04709e36c88ed222e45ef853a.tar.xz
wireguard-openbsd-276193e9af451ec04709e36c88ed222e45ef853a.zip
ansi
Diffstat (limited to 'sys/lib')
-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.