summaryrefslogtreecommitdiff
path: root/common/compat.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-01-28 19:22:08 +0000
committerStef Walter <stef@memberwebs.com>2006-01-28 19:22:08 +0000
commit9c8b4f051ae56fa7ec4b30ed45836e9715fb3cc9 (patch)
treed191917f121b2cf8d158d6bd61287752218d0986 /common/compat.c
parent7996df8d6567eec464f5d4c427515daefe8e2373 (diff)
Fix compile time warnings.
Diffstat (limited to 'common/compat.c')
-rw-r--r--common/compat.c3
1 files changed, 2 insertions, 1 deletions
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 <syslog.h>
#include <stdlib.h>
#include <stdio.h>
+#include <err.h>
#include <strings.h>
#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;
}