summaryrefslogtreecommitdiff
path: root/openbsd-compat/strtoul.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-11-10 16:48:10 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-11-10 16:48:10 +1100
commitf5ebfe9f68ab32adaa1d5ac3418eba838fed5f92 (patch)
treee307d17c0db16fd1df27e8f6fc69c5d60bd98f2e /openbsd-compat/strtoul.c
parentf976e6f883879a3749d79dc64d3f8513095ee9e0 (diff)
- (dtucker) [openbsd-compat/strtoul.c] Update from OpenBSD 1.5 -> 1.7.
Diffstat (limited to 'openbsd-compat/strtoul.c')
-rw-r--r--openbsd-compat/strtoul.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/openbsd-compat/strtoul.c b/openbsd-compat/strtoul.c
index 7c093c48..8219c839 100644
--- a/openbsd-compat/strtoul.c
+++ b/openbsd-compat/strtoul.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: strtoul.c,v 1.7 2005/08/08 08:05:37 espie Exp $ */
/*
* Copyright (c) 1990 Regents of the University of California.
* All rights reserved.
@@ -32,10 +33,6 @@
#include "includes.h"
#ifndef HAVE_STRTOUL
-#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: strtoul.c,v 1.5 2003/06/02 20:18:38 millert Exp $";
-#endif /* LIBC_SCCS and not lint */
-
#include <ctype.h>
#include <errno.h>
#include <limits.h>
@@ -48,15 +45,12 @@ static char *rcsid = "$OpenBSD: strtoul.c,v 1.5 2003/06/02 20:18:38 millert Exp
* alphabets and digits are each contiguous.
*/
unsigned long
-strtoul(nptr, endptr, base)
- const char *nptr;
- char **endptr;
- register int base;
+strtoul(const char *nptr, char **endptr, int base)
{
- register const char *s;
- register unsigned long acc, cutoff;
- register int c;
- register int neg, any, cutlim;
+ const char *s;
+ unsigned long acc, cutoff;
+ int c;
+ int neg, any, cutlim;
/*
* See strtol for comments as to the logic used.