summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd/ftpd.c
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-11-17 11:52:41 +0000
committeryar <yar@FreeBSD.org>2004-11-17 11:52:41 +0000
commit5bdd79160607e57e68ffb75d3ae43caf0ebcbdd9 (patch)
treeb38d4138d0dbfab27e02e56017a4b8aa0d2622b7 /libexec/ftpd/ftpd.c
parent8a003e9336f23d27d8e21e3343a9744d55f658ad (diff)
downloadFreeBSD-src-5bdd79160607e57e68ffb75d3ae43caf0ebcbdd9.zip
FreeBSD-src-5bdd79160607e57e68ffb75d3ae43caf0ebcbdd9.tar.gz
Kill more unneeded casts found.
Noticed by: Nick Leuta <skynick -at- mail.sc.ru> (some of them)
Diffstat (limited to 'libexec/ftpd/ftpd.c')
-rw-r--r--libexec/ftpd/ftpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index cd31881..a50dabd 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1035,7 +1035,7 @@ user(char *name)
syslog(LOG_NOTICE,
"FTP LOGIN REFUSED FROM %s, %s",
remotehost, name);
- pw = (struct passwd *) NULL;
+ pw = NULL;
return;
}
}
@@ -2058,7 +2058,7 @@ send_data(FILE *instr, FILE *outstr, size_t blksize, off_t filesize, int isreg)
while (filesize > 0) {
err = sendfile(filefd, netfd, offset, 0,
- (struct sf_hdtr *) NULL, &cnt, 0);
+ NULL, &cnt, 0);
/*
* Calculate byte_count before OOB processing.
* It can be used in myoob() later.
@@ -2553,7 +2553,7 @@ pwd(void)
{
char *s, path[MAXPATHLEN + 1];
- if (getwd(path) == (char *)NULL)
+ if (getwd(path) == NULL)
reply(550, "%s.", path);
else {
if ((s = doublequote(path)) == NULL)
OpenPOWER on IntegriCloud