Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib ANSI prototypes
details: https://anonhg.NetBSD.org/src/rev/4d5158935ae3
branches: trunk
changeset: 779650:4d5158935ae3
user: abs <abs%NetBSD.org@localhost>
date: Fri Jun 08 11:13:33 2012 +0000
description:
ANSI prototypes
diffstat:
lib/libc/stdlib/a64l.c | 5 ++---
lib/libc/stdlib/abort.c | 6 +++---
lib/libc/stdlib/abs.c | 7 +++----
lib/libm/noieee_src/n_gamma.c | 5 ++---
4 files changed, 10 insertions(+), 13 deletions(-)
diffs (95 lines):
diff -r 65e9bef01238 -r 4d5158935ae3 lib/libc/stdlib/a64l.c
--- a/lib/libc/stdlib/a64l.c Fri Jun 08 08:56:45 2012 +0000
+++ b/lib/libc/stdlib/a64l.c Fri Jun 08 11:13:33 2012 +0000
@@ -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 @@
#endif
long
-a64l(s)
- const char *s;
+a64l(const char *s)
{
long value, digit, shift;
int i;
diff -r 65e9bef01238 -r 4d5158935ae3 lib/libc/stdlib/abort.c
--- a/lib/libc/stdlib/abort.c Fri Jun 08 08:56:45 2012 +0000
+++ b/lib/libc/stdlib/abort.c Fri Jun 08 11:13:33 2012 +0000
@@ -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 @@
static int aborting = 0;
void
-abort()
+abort(void)
{
sigset_t mask;
diff -r 65e9bef01238 -r 4d5158935ae3 lib/libc/stdlib/abs.c
--- a/lib/libc/stdlib/abs.c Fri Jun 08 08:56:45 2012 +0000
+++ b/lib/libc/stdlib/abs.c Fri Jun 08 11:13:33 2012 +0000
@@ -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);
}
diff -r 65e9bef01238 -r 4d5158935ae3 lib/libm/noieee_src/n_gamma.c
--- a/lib/libm/noieee_src/n_gamma.c Fri Jun 08 08:56:45 2012 +0000
+++ b/lib/libm/noieee_src/n_gamma.c Fri Jun 08 11:13:33 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: n_gamma.c,v 1.7 2011/11/02 02:34:56 christos Exp $ */
+/* $NetBSD: n_gamma.c,v 1.8 2012/06/08 11:13:33 abs Exp $ */
/*-
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -135,8 +135,7 @@
#endif
double
-gamma(x)
- double x;
+gamma(double x)
{
double b;
struct Double u;
Home |
Main Index |
Thread Index |
Old Index