diff options
author | 2007-05-16 09:52:47 +0000 | |
---|---|---|
committer | 2007-05-16 09:52:47 +0000 | |
commit | b203ab8959ff08a5efe3c5412afab07decf2ba35 (patch) | |
tree | 1bc748474825f96914736b94605ba4e45f1888b7 | |
parent | add definitions for the bits in the "register" bus_space region. (diff) | |
download | wireguard-openbsd-b203ab8959ff08a5efe3c5412afab07decf2ba35.tar.xz wireguard-openbsd-b203ab8959ff08a5efe3c5412afab07decf2ba35.zip |
open() returns -1 on error, not NULL. From Tobias Stoeckmann.
-rw-r--r-- | usr.bin/cvs/client.c | 6 |
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)); } |