Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so ANSIfy
details: https://anonhg.NetBSD.org/src/rev/4aea7941840a
branches: trunk
changeset: 759253:4aea7941840a
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Dec 03 23:07:49 2010 +0000
description:
ANSIfy
diffstat:
libexec/ld.elf_so/xmalloc.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (46 lines):
diff -r 1cd53153810f -r 4aea7941840a libexec/ld.elf_so/xmalloc.c
--- a/libexec/ld.elf_so/xmalloc.c Fri Dec 03 22:48:25 2010 +0000
+++ b/libexec/ld.elf_so/xmalloc.c Fri Dec 03 23:07:49 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xmalloc.c,v 1.9 2009/05/19 20:44:52 christos Exp $ */
+/* $NetBSD: xmalloc.c,v 1.10 2010/12/03 23:07:49 joerg Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -77,7 +77,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: xmalloc.c,v 1.9 2009/05/19 20:44:52 christos Exp $");
+__RCSID("$NetBSD: xmalloc.c,v 1.10 2010/12/03 23:07:49 joerg Exp $");
#endif /* not lint */
#include <stdlib.h>
@@ -160,8 +160,7 @@
#if defined(MALLOC_DEBUG) || defined(RCHECK)
#define ASSERT(p) if (!(p)) botch("p")
static void
-botch(
- const char *s)
+botch(const char *s)
{
xwarnx("\r\nassertion botched: %s\r\n", s);
abort();
@@ -301,8 +300,7 @@
}
void
-xfree(cp)
- void *cp;
+xfree(void *cp)
{
int size;
union overhead *op;
@@ -386,6 +384,7 @@
* for each size category, the second showing the number of mallocs -
* frees for each size category.
*/
+void
mstats(char *s)
{
int i, j;
Home |
Main Index |
Thread Index |
Old Index