diff options
author | hsu <hsu@FreeBSD.org> | 1995-06-20 18:31:16 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 1995-06-20 18:31:16 +0000 |
commit | 969b12486948ceb40c08cb8c0bb5f82eea575815 (patch) | |
tree | c27ed1ee6761e595f55818a3f3833ad3766d6c61 /lib/libc/gen | |
parent | 139fc3d88057ba3966cd402699b386ceaa06bba7 (diff) | |
download | FreeBSD-src-969b12486948ceb40c08cb8c0bb5f82eea575815.zip FreeBSD-src-969b12486948ceb40c08cb8c0bb5f82eea575815.tar.gz |
Don't cast void functions to void.
Obtained from: NetBSD commit by jtc on June 16, 1995.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/closedir.c | 4 | ||||
-rw-r--r-- | lib/libc/gen/getcwd.c | 4 | ||||
-rw-r--r-- | lib/libc/gen/getttyent.c | 2 | ||||
-rw-r--r-- | lib/libc/gen/popen.c | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/gen/closedir.c b/lib/libc/gen/closedir.c index 7e595e5..3a4fc9d 100644 --- a/lib/libc/gen/closedir.c +++ b/lib/libc/gen/closedir.c @@ -53,8 +53,8 @@ closedir(dirp) fd = dirp->dd_fd; dirp->dd_fd = -1; dirp->dd_loc = 0; - (void)free((void *)dirp->dd_buf); - (void)free((void *)dirp); + free((void *)dirp->dd_buf); + free((void *)dirp); _reclaim_telldir(dirp); return(close(fd)); } diff --git a/lib/libc/gen/getcwd.c b/lib/libc/gen/getcwd.c index 2757d3b..fbd445d 100644 --- a/lib/libc/gen/getcwd.c +++ b/lib/libc/gen/getcwd.c @@ -128,7 +128,7 @@ getcwd(pt, size) * path to the beginning of the buffer, but it's always * been that way and stuff would probably break. */ - (void)bcopy(bpt, pt, ept - bpt); + bcopy(bpt, pt, ept - bpt); free(up); return (pt); } @@ -204,7 +204,7 @@ getcwd(pt, size) goto err; bpt = pt + off; ept = pt + ptsize; - (void)bcopy(bpt, ept - len, len); + bcopy(bpt, ept - len, len); bpt = ept - len; } if (!first) diff --git a/lib/libc/gen/getttyent.c b/lib/libc/gen/getttyent.c index f9b1e0d..83f97e8 100644 --- a/lib/libc/gen/getttyent.c +++ b/lib/libc/gen/getttyent.c @@ -178,7 +178,7 @@ setttyent() { if (tf) { - (void)rewind(tf); + rewind(tf); return (1); } else if (tf = fopen(_PATH_TTYS, "r")) return (1); diff --git a/lib/libc/gen/popen.c b/lib/libc/gen/popen.c index 4affdf4..0b8bda5 100644 --- a/lib/libc/gen/popen.c +++ b/lib/libc/gen/popen.c @@ -71,7 +71,7 @@ popen(program, type) return (NULL); if (pipe(pdes) < 0) { - (void)free(cur); + free(cur); return (NULL); } @@ -79,7 +79,7 @@ popen(program, type) case -1: /* Error. */ (void)close(pdes[0]); (void)close(pdes[1]); - (void)free(cur); + free(cur); return (NULL); /* NOTREACHED */ case 0: /* Child. */ |