diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-10-06 17:57:55 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-10-06 17:57:55 +0000 |
commit | 067248cb73026df5d0df1fa039fe934a02d475a0 (patch) | |
tree | 86ea6d4d46784d3c90eb50560180999f709c157f /lib/libc | |
parent | 5d53b4e16cf42ba5c7710e83f29307631838802c (diff) |
Remove an unnecessary (void *) cast
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/readdir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/readdir.c b/lib/libc/gen/readdir.c index 7fa81dbd38d..6713f4fbd37 100644 --- a/lib/libc/gen/readdir.c +++ b/lib/libc/gen/readdir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: readdir.c,v 1.18 2013/08/13 05:52:12 guenther Exp $ */ +/* $OpenBSD: readdir.c,v 1.19 2013/10/06 17:57:54 guenther Exp $ */ /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -46,8 +46,8 @@ _readdir_unlocked(DIR *dirp, struct dirent **result, int skipdeleted) if (dirp->dd_loc >= dirp->dd_size) dirp->dd_loc = 0; if (dirp->dd_loc == 0) { - dirp->dd_size = getdents(dirp->dd_fd, - (void *)dirp->dd_buf, dirp->dd_len); + dirp->dd_size = getdents(dirp->dd_fd, dirp->dd_buf, + dirp->dd_len); if (dirp->dd_size == 0) return (0); if (dirp->dd_size < 0) |