diff options
-rw-r--r-- | lib/libutil/pidfile.c | 4 | ||||
-rw-r--r-- | usr.bin/cap_mkdb/cap_mkdb.c | 4 | ||||
-rw-r--r-- | usr.sbin/netgroup_mkdb/netgroup_mkdb.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libutil/pidfile.c b/lib/libutil/pidfile.c index 0dc47d6e376..e2d301868f8 100644 --- a/lib/libutil/pidfile.c +++ b/lib/libutil/pidfile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pidfile.c,v 1.13 2019/06/28 05:33:35 deraadt Exp $ */ +/* $OpenBSD: pidfile.c,v 1.14 2019/06/28 14:20:40 schwarze Exp $ */ /* $NetBSD: pidfile.c,v 1.4 2001/02/19 22:43:42 cgd Exp $ */ /*- @@ -83,7 +83,7 @@ pidfile(const char *basename) (void) fclose(f); pidfile_pid = pid; - if (atexit(pidfile_cleanup) == -1) { + if (atexit(pidfile_cleanup) != 0) { save_errno = errno; (void) unlink(pidfile_path); free(pidfile_path); diff --git a/usr.bin/cap_mkdb/cap_mkdb.c b/usr.bin/cap_mkdb/cap_mkdb.c index 23325ecac89..bbc312c6647 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.23 2019/06/28 05:33:35 deraadt Exp $ */ +/* $OpenBSD: cap_mkdb.c,v 1.24 2019/06/28 14:20:40 schwarze 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) == -1) + if (atexit(dounlink) != 0) err(1, "atexit"); db_build(argv); diff --git a/usr.sbin/netgroup_mkdb/netgroup_mkdb.c b/usr.sbin/netgroup_mkdb/netgroup_mkdb.c index 0ddcdae0c2c..1420eec0beb 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.21 2019/06/28 05:33:35 deraadt Exp $ */ +/* $OpenBSD: netgroup_mkdb.c,v 1.22 2019/06/28 14:20:40 schwarze Exp $ */ /* * Copyright (c) 1994 Christos Zoulas @@ -123,7 +123,7 @@ main(int argc, char *argv[]) else if (argc > 1) usage(); - if (atexit(cleanup) == -1) + if (atexit(cleanup) != 0) err(1, "Cannot install exit handler"); /* Read and parse the netgroup file */ |