summaryrefslogtreecommitdiffstats
path: root/usr.sbin/netgroup_mkdb
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2019-06-28 05:33:35 +0000
committerderaadt <deraadt@openbsd.org>2019-06-28 05:33:35 +0000
commitabcdd3629cf6b53c3b1c664c7f2e28729589b1d3 (patch)
tree31d72dab547b361f4cd3fa93b98b2eaa20a66cb8 /usr.sbin/netgroup_mkdb
parentImplement the bits and pieces that are needed to dump MRT_DUMP_V2_RIB_GENERIC (diff)
downloadwireguard-openbsd-abcdd3629cf6b53c3b1c664c7f2e28729589b1d3.tar.xz
wireguard-openbsd-abcdd3629cf6b53c3b1c664c7f2e28729589b1d3.zip
atexit() returns -1 on failure
Diffstat (limited to 'usr.sbin/netgroup_mkdb')
-rw-r--r--usr.sbin/netgroup_mkdb/netgroup_mkdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/netgroup_mkdb/netgroup_mkdb.c b/usr.sbin/netgroup_mkdb/netgroup_mkdb.c
index adfb4d95f5c..0ddcdae0c2c 100644
--- a/usr.sbin/netgroup_mkdb/netgroup_mkdb.c
+++ b/usr.sbin/netgroup_mkdb/netgroup_mkdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netgroup_mkdb.c,v 1.20 2015/10/13 15:12:53 deraadt Exp $ */
+/* $OpenBSD: netgroup_mkdb.c,v 1.21 2019/06/28 05:33:35 deraadt Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@@ -123,7 +123,7 @@ main(int argc, char *argv[])
else if (argc > 1)
usage();
- if (atexit(cleanup))
+ if (atexit(cleanup) == -1)
err(1, "Cannot install exit handler");
/* Read and parse the netgroup file */