diff options
author | Stef Walter <stef@memberwebs.com> | 2006-01-28 19:22:08 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2006-01-28 19:22:08 +0000 |
commit | 9c8b4f051ae56fa7ec4b30ed45836e9715fb3cc9 (patch) | |
tree | d191917f121b2cf8d158d6bd61287752218d0986 /common/compat.c | |
parent | 7996df8d6567eec464f5d4c427515daefe8e2373 (diff) |
Fix compile time warnings.
Diffstat (limited to 'common/compat.c')
-rw-r--r-- | common/compat.c | 3 |
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; } |