summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2013-05-05 01:07:46 +0000
committertedu <tedu@openbsd.org>2013-05-05 01:07:46 +0000
commit5413af1eae67f33e60bda4b340a964fe02a11efd (patch)
treeeddf4d08f5454b0cfc02d6ea07ef8e40d98f90d1 /lib/libc/sys
parentrevert uthum_activate removal, it is needed in the detach path as found the (diff)
downloadwireguard-openbsd-5413af1eae67f33e60bda4b340a964fe02a11efd.tar.xz
wireguard-openbsd-5413af1eae67f33e60bda4b340a964fe02a11efd.zip
no need to cast calloc
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/select.27
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/sys/select.2 b/lib/libc/sys/select.2
index 1cd5bee23ca..74556c7cc0b 100644
--- a/lib/libc/sys/select.2
+++ b/lib/libc/sys/select.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: select.2,v 1.29 2013/04/29 17:06:20 matthew Exp $
+.\" $OpenBSD: select.2,v 1.30 2013/05/05 01:07:46 tedu Exp $
.\" $NetBSD: select.2,v 1.5 1995/06/27 22:32:28 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)select.2 8.2 (Berkeley) 3/25/94
.\"
-.Dd $Mdocdate: April 29 2013 $
+.Dd $Mdocdate: May 5 2013 $
.Dt SELECT 2
.Os
.Sh NAME
@@ -238,8 +238,7 @@ userland libraries:
fd_set *fdsr;
int max = fd;
-fdsr = (fd_set *)calloc(howmany(max+1, NFDBITS),
- sizeof(fd_mask));
+fdsr = calloc(howmany(max+1, NFDBITS), sizeof(fd_mask));
if (fdsr == NULL) {
...
return (-1);