summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/client.c')
-rw-r--r--usr.bin/cvs/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c
index 6334b347c24..336f3823d14 100644
--- a/usr.bin/cvs/client.c
+++ b/usr.bin/cvs/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.59 2007/02/22 06:42:09 otto Exp $ */
+/* $OpenBSD: client.c,v 1.60 2007/05/16 09:52:47 xsa Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -957,7 +957,7 @@ cvs_client_initlog(void)
}
if ((cvs_client_inlog_fd = open(fpath,
- O_RDWR | O_CREAT | O_TRUNC, 0644)) == NULL) {
+ O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1) {
fatal("cvs_client_initlog: open `%s': %s",
fpath, strerror(errno));
}
@@ -976,7 +976,7 @@ cvs_client_initlog(void)
}
if ((cvs_client_outlog_fd = open(fpath,
- O_RDWR | O_CREAT | O_TRUNC, 0644)) == NULL) {
+ O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1) {
fatal("cvs_client_initlog: open `%s': %s",
fpath, strerror(errno));
}