summaryrefslogtreecommitdiffstats
path: root/bin/setfacl/util.c
diff options
context:
space:
mode:
authorjedgar <jedgar@FreeBSD.org>2001-12-03 00:51:36 +0000
committerjedgar <jedgar@FreeBSD.org>2001-12-03 00:51:36 +0000
commit30f5e7ea6e8102cba1c7db2753e8a7c1dbf8137d (patch)
tree25f1f21319524081b88d9ebfbfe0bc3c53af3ac5 /bin/setfacl/util.c
parente0f46659fc7ba2e524035cc4c192580d56ccf416 (diff)
downloadFreeBSD-src-30f5e7ea6e8102cba1c7db2753e8a7c1dbf8137d.zip
FreeBSD-src-30f5e7ea6e8102cba1c7db2753e8a7c1dbf8137d.tar.gz
style(9) cleanups mostly consisting of:
o explicitly check return values and variables against a value o return x; -> return (x); o fix inconsistent sysexits usage by nuking it (partially suggested by bde) Obtained from: TrustedBSD Project
Diffstat (limited to 'bin/setfacl/util.c')
-rw-r--r--bin/setfacl/util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/setfacl/util.c b/bin/setfacl/util.c
index f4fef77..2c1a6e27 100644
--- a/bin/setfacl/util.c
+++ b/bin/setfacl/util.c
@@ -29,7 +29,6 @@
#include <err.h>
#include <stdlib.h>
#include <string.h>
-#include <sysexits.h>
#include "setfacl.h"
@@ -40,6 +39,6 @@ zmalloc(size_t size)
ptr = calloc(1, size);
if (ptr == NULL)
- err(EX_OSERR, "calloc() failed");
- return ptr;
+ err(1, "calloc() failed");
+ return (ptr);
}
OpenPOWER on IntegriCloud