Kill more unneeded casts found.
Noticed by: Nick Leuta <skynick -at- mail.sc.ru> (some of them)
This commit is contained in:
parent
33ece31cca
commit
7e295315e6
@ -1399,7 +1399,7 @@ yylex(void)
|
|||||||
c = cbuf[cpos];
|
c = cbuf[cpos];
|
||||||
cbuf[cpos] = '\0';
|
cbuf[cpos] = '\0';
|
||||||
yylval.u.i = atoi(cp);
|
yylval.u.i = atoi(cp);
|
||||||
yylval.u.o = strtoull(cp, (char **)NULL, 10);
|
yylval.u.o = strtoull(cp, NULL, 10);
|
||||||
cbuf[cpos] = c;
|
cbuf[cpos] = c;
|
||||||
return (NUMBER);
|
return (NUMBER);
|
||||||
}
|
}
|
||||||
|
@ -1035,7 +1035,7 @@ user(char *name)
|
|||||||
syslog(LOG_NOTICE,
|
syslog(LOG_NOTICE,
|
||||||
"FTP LOGIN REFUSED FROM %s, %s",
|
"FTP LOGIN REFUSED FROM %s, %s",
|
||||||
remotehost, name);
|
remotehost, name);
|
||||||
pw = (struct passwd *) NULL;
|
pw = NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2058,7 +2058,7 @@ send_data(FILE *instr, FILE *outstr, size_t blksize, off_t filesize, int isreg)
|
|||||||
|
|
||||||
while (filesize > 0) {
|
while (filesize > 0) {
|
||||||
err = sendfile(filefd, netfd, offset, 0,
|
err = sendfile(filefd, netfd, offset, 0,
|
||||||
(struct sf_hdtr *) NULL, &cnt, 0);
|
NULL, &cnt, 0);
|
||||||
/*
|
/*
|
||||||
* Calculate byte_count before OOB processing.
|
* Calculate byte_count before OOB processing.
|
||||||
* It can be used in myoob() later.
|
* It can be used in myoob() later.
|
||||||
@ -2553,7 +2553,7 @@ pwd(void)
|
|||||||
{
|
{
|
||||||
char *s, path[MAXPATHLEN + 1];
|
char *s, path[MAXPATHLEN + 1];
|
||||||
|
|
||||||
if (getwd(path) == (char *)NULL)
|
if (getwd(path) == NULL)
|
||||||
reply(550, "%s.", path);
|
reply(550, "%s.", path);
|
||||||
else {
|
else {
|
||||||
if ((s = doublequote(path)) == NULL)
|
if ((s = doublequote(path)) == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user