Don't cast void functions to void.

Obtained from: NetBSD commit by jtc on June 16, 1995.
This commit is contained in:
Jeffrey Hsu 1995-06-20 18:31:16 +00:00
parent 43f8595f73
commit e78bad2371
4 changed files with 7 additions and 7 deletions

View File

@ -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));
}

View File

@ -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)

View File

@ -178,7 +178,7 @@ setttyent()
{
if (tf) {
(void)rewind(tf);
rewind(tf);
return (1);
} else if (tf = fopen(_PATH_TTYS, "r"))
return (1);

View File

@ -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. */