summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorabs <abs@NetBSD.org>2012-06-08 11:13:33 +0000
committerabs <abs@NetBSD.org>2012-06-08 11:13:33 +0000
commit905d883a5e7672ac86f320663bd1898513d40eac (patch)
tree70aa84e40bd11ddc9496286026d8c4568b40f540 /lib/libc/stdlib
parent158559a1dc261bd637d3cea7cac0b91a7619639f (diff)
ANSI prototypes
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/a64l.c5
-rw-r--r--lib/libc/stdlib/abort.c6
-rw-r--r--lib/libc/stdlib/abs.c7
3 files changed, 8 insertions, 10 deletions
diff --git a/lib/libc/stdlib/a64l.c b/lib/libc/stdlib/a64l.c
index 2e616b98ce7..d7d0042121d 100644
--- a/lib/libc/stdlib/a64l.c
+++ b/lib/libc/stdlib/a64l.c
@@ -5,7 +5,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: a64l.c,v 1.9 2003/07/26 19:24:53 salo Exp $");
+__RCSID("$NetBSD: a64l.c,v 1.10 2012/06/08 11:15:26 abs Exp $");
#endif
#include "namespace.h"
@@ -18,8 +18,7 @@ __weak_alias(a64l,_a64l)
#endif
long
-a64l(s)
- const char *s;
+a64l(const char *s)
{
long value, digit, shift;
int i;
diff --git a/lib/libc/stdlib/abort.c b/lib/libc/stdlib/abort.c
index 1096a498638..7f46b9ea0cd 100644
--- a/lib/libc/stdlib/abort.c
+++ b/lib/libc/stdlib/abort.c
@@ -1,4 +1,4 @@
-/* $NetBSD: abort.c,v 1.14 2011/05/18 19:36:36 dsl Exp $ */
+/* $NetBSD: abort.c,v 1.15 2012/06/08 11:15:26 abs Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)abort.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: abort.c,v 1.14 2011/05/18 19:36:36 dsl Exp $");
+__RCSID("$NetBSD: abort.c,v 1.15 2012/06/08 11:15:26 abs Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -47,7 +47,7 @@ extern void (*__cleanup)(void);
static int aborting = 0;
void
-abort()
+abort(void)
{
sigset_t mask;
diff --git a/lib/libc/stdlib/abs.c b/lib/libc/stdlib/abs.c
index 52bd8b4c62b..2b5333c3052 100644
--- a/lib/libc/stdlib/abs.c
+++ b/lib/libc/stdlib/abs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: abs.c,v 1.7 2003/08/07 16:43:37 agc Exp $ */
+/* $NetBSD: abs.c,v 1.8 2012/06/08 11:15:26 abs Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -34,15 +34,14 @@
#if 0
static char sccsid[] = "@(#)abs.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: abs.c,v 1.7 2003/08/07 16:43:37 agc Exp $");
+__RCSID("$NetBSD: abs.c,v 1.8 2012/06/08 11:15:26 abs Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
#include <stdlib.h>
int
-abs(j)
- int j;
+abs(int j)
{
return(j < 0 ? -j : j);
}