diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-06-28 05:33:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-06-28 05:33:36 +0000 |
commit | b75b34ab97c5e2b3d1cc4fae079092b6d7d399a3 (patch) | |
tree | 7c8882cb69962f8a96f03962129bae3c5c4559ac /usr.bin | |
parent | 23f7e6930e03d8832a888a49e01c6e95c9af087d (diff) |
atexit() returns -1 on failure
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cap_mkdb/cap_mkdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cap_mkdb/cap_mkdb.c b/usr.bin/cap_mkdb/cap_mkdb.c index d3ded5fa5dc..23325ecac89 100644 --- a/usr.bin/cap_mkdb/cap_mkdb.c +++ b/usr.bin/cap_mkdb/cap_mkdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cap_mkdb.c,v 1.22 2015/12/04 19:15:54 jmc Exp $ */ +/* $OpenBSD: cap_mkdb.c,v 1.23 2019/06/28 05:33:35 deraadt Exp $ */ /* $NetBSD: cap_mkdb.c,v 1.5 1995/09/02 05:47:12 jtc Exp $ */ /*- @@ -111,7 +111,7 @@ main(int argc, char *argv[]) DEFFILEMODE, DB_HASH, &openinfo)) == NULL) err(1, "%s", buf); - if (atexit(dounlink)) + if (atexit(dounlink) == -1) err(1, "atexit"); db_build(argv); |