summaryrefslogtreecommitdiffstats
path: root/bin/csh
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-02-01 17:11:07 +0000
committersteve <steve@FreeBSD.org>1998-02-01 17:11:07 +0000
commitc3bc523e8ec2ad74b0a1445562d3f7e26b868784 (patch)
treeb02371fff6b5bb04819367e073a255d6b02d5897 /bin/csh
parent3a6101c511a7a59fcf906bece69fe8d234b7b372 (diff)
downloadFreeBSD-src-c3bc523e8ec2ad74b0a1445562d3f7e26b868784.zip
FreeBSD-src-c3bc523e8ec2ad74b0a1445562d3f7e26b868784.tar.gz
setpwent now has a void return type, so remove the now bogus cast.
Diffstat (limited to 'bin/csh')
-rw-r--r--bin/csh/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/csh/file.c b/bin/csh/file.c
index 5ef709c..91e4b87 100644
--- a/bin/csh/file.c
+++ b/bin/csh/file.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)file.c 8.2 (Berkeley) 3/19/94";
#else
static const char rcsid[] =
- "$Id: file.c,v 1.6 1997/02/22 14:01:54 peter Exp $";
+ "$Id: file.c,v 1.7 1997/08/07 21:42:08 steve Exp $";
#endif
#endif /* not lint */
@@ -453,7 +453,7 @@ tsearch(word, command, max_word_length)
looking_for_lognames = (*word == '~') && (Strchr(word, '/') == NULL);
if (looking_for_lognames) {
- (void) setpwent();
+ setpwent();
copyn(name, &word[1], MAXNAMLEN); /* name sans ~ */
dir_fd = NULL;
}
@@ -501,7 +501,7 @@ again: /* search for matches */
ignoring = FALSE;
nignored = 0;
if (looking_for_lognames)
- (void) setpwent();
+ setpwent();
else
rewinddir(dir_fd);
goto again;
OpenPOWER on IntegriCloud