From 9c8b4f051ae56fa7ec4b30ed45836e9715fb3cc9 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 28 Jan 2006 19:22:08 +0000 Subject: Fix compile time warnings. --- common/compat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/compat.c') diff --git a/common/compat.c b/common/compat.c index 247560e..67d3997 100644 --- a/common/compat.c +++ b/common/compat.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include "usuals.h" @@ -238,7 +239,7 @@ xcalloc(size_t size) { register void* value = calloc(1, size); if(value == NULL) - errx("out of memory"); + errx(1, "out of memory"); return value; } -- cgit v1.2.3