diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 15:53:24 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 15:53:24 +0000 |
commit | 3e969e71dc9f6fbf52b0f91d8ac7918b130529b2 (patch) | |
tree | 9e6213b0e2526c53b4bdf8df97fa72ab05bf3aab /sbin/isakmpd/regress | |
parent | bc894e0ef2cb59d34ea31a3981db829231c46c64 (diff) |
MAP_FAILED, not 0
Diffstat (limited to 'sbin/isakmpd/regress')
-rw-r--r-- | sbin/isakmpd/regress/x509/x509test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/regress/x509/x509test.c b/sbin/isakmpd/regress/x509/x509test.c index 8b4271c46aa..9591b24c894 100644 --- a/sbin/isakmpd/regress/x509/x509test.c +++ b/sbin/isakmpd/regress/x509/x509test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509test.c,v 1.15 2001/01/27 12:03:39 niklas Exp $ */ +/* $OpenBSD: x509test.c,v 1.16 2001/05/11 15:53:23 art Exp $ */ /* $EOM: x509test.c,v 1.9 2000/12/21 15:24:25 ho Exp $ */ /* @@ -85,7 +85,7 @@ open_file (char *name) log_fatal ("open (\"%s\", O_RDONLY)", name); addr = mmap (0, file_sz, PROT_READ | PROT_WRITE, MAP_FILE | MAP_PRIVATE, fd, 0); - if (!addr) + if (addr == MAP_FAILED) log_fatal ("mmap (0, %d, PROT_READ | PROT_WRITE, MAP_FILE | MAP_PRIVATE," "%d, 0)", file_sz, fd); close (fd); |