diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2013-05-05 01:07:47 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2013-05-05 01:07:47 +0000 |
commit | 2e02b7bd5267f3ba8c61e07a287499d1be13fcb3 (patch) | |
tree | 152a5b711d2dc12e84ebf3b813747c2c7f100af2 /lib/libc | |
parent | 337ba3c03aa9666511753c5834a21460c2d5e589 (diff) |
no need to cast calloc
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/select.2 | 7 |
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); |