summaryrefslogtreecommitdiff
path: root/lib/libcrypto/arc4random/arc4random_freebsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/arc4random/arc4random_freebsd.h')
-rw-r--r--lib/libcrypto/arc4random/arc4random_freebsd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/arc4random/arc4random_freebsd.h b/lib/libcrypto/arc4random/arc4random_freebsd.h
index b97bad86caf..b54f400c545 100644
--- a/lib/libcrypto/arc4random/arc4random_freebsd.h
+++ b/lib/libcrypto/arc4random/arc4random_freebsd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: arc4random_freebsd.h,v 1.2 2015/01/15 06:57:18 deraadt Exp $ */
+/* $OpenBSD: arc4random_freebsd.h,v 1.3 2015/09/11 11:52:55 deraadt Exp $ */
/*
* Copyright (c) 1996, David Mazieres <dm@uun.org>
@@ -73,14 +73,14 @@ _rs_allocate(struct _rs **rsp, struct _rsx **rsxp)
{
if ((*rsp = mmap(NULL, sizeof(**rsp), PROT_READ|PROT_WRITE,
MAP_ANON|MAP_PRIVATE, -1, 0)) == MAP_FAILED)
- return -1;
+ return (-1);
if ((*rsxp = mmap(NULL, sizeof(**rsxp), PROT_READ|PROT_WRITE,
MAP_ANON|MAP_PRIVATE, -1, 0)) == MAP_FAILED) {
munmap(*rsp, sizeof(**rsp));
- return -1;
+ return (-1);
}
_ARC4_ATFORK(_rs_forkhandler);
- return 0;
+ return (0);
}