summaryrefslogtreecommitdiff
path: root/usr.bin/xlint/lint1/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/xlint/lint1/mem.c')
-rw-r--r--usr.bin/xlint/lint1/mem.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/usr.bin/xlint/lint1/mem.c b/usr.bin/xlint/lint1/mem.c
index aff067f8f49..e91772d85d7 100644
--- a/usr.bin/xlint/lint1/mem.c
+++ b/usr.bin/xlint/lint1/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.2 1996/06/26 05:44:16 deraadt Exp $ */
+/* $OpenBSD: mem.c,v 1.3 2005/11/19 03:35:27 cloder Exp $ */
/* $NetBSD: mem.c,v 1.2 1995/07/03 21:24:24 cgd Exp $ */
/*
@@ -33,7 +33,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: mem.c,v 1.2 1996/06/26 05:44:16 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mem.c,v 1.3 2005/11/19 03:35:27 cloder Exp $";
#endif
#include <stdlib.h>
@@ -43,8 +43,7 @@ static char rcsid[] = "$OpenBSD: mem.c,v 1.2 1996/06/26 05:44:16 deraadt Exp $";
#include "lint.h"
void *
-xmalloc(s)
- size_t s;
+xmalloc(size_t s)
{
void *p;
@@ -54,8 +53,7 @@ xmalloc(s)
}
void *
-xcalloc(n, s)
- size_t n, s;
+xcalloc(size_t n, size_t s)
{
void *p;
@@ -65,9 +63,7 @@ xcalloc(n, s)
}
void *
-xrealloc(p, s)
- void *p;
- size_t s;
+xrealloc(void *p, size_t s)
{
if ((p = realloc(p, s)) == NULL)
nomem();
@@ -75,8 +71,7 @@ xrealloc(p, s)
}
char *
-xstrdup(s)
- const char *s;
+xstrdup(const char *s)
{
char *s2;
@@ -86,7 +81,7 @@ xstrdup(s)
}
void
-nomem()
+nomem(void)
{
errx(1, "virtual memory exhausted");
}