diff options
author | yar <yar@FreeBSD.org> | 2004-11-13 13:15:47 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2004-11-13 13:15:47 +0000 |
commit | 9e5ec41335ea4a9a5240e0ffcedb7946215e4ed6 (patch) | |
tree | 28e1903d02414cbd18530638262a9c7e379af4ce /libexec/ftpd/ftpcmd.y | |
parent | 0eb6213e4dd08c12836ee7748958a2e5301d2c3a (diff) | |
download | FreeBSD-src-9e5ec41335ea4a9a5240e0ffcedb7946215e4ed6.zip FreeBSD-src-9e5ec41335ea4a9a5240e0ffcedb7946215e4ed6.tar.gz |
Kill ancient casts to integral types left from the K&R era.
They're unneeded and sometimes erroneous now.
Diffstat (limited to 'libexec/ftpd/ftpcmd.y')
-rw-r--r-- | libexec/ftpd/ftpcmd.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y index e664914..2a8708d 100644 --- a/libexec/ftpd/ftpcmd.y +++ b/libexec/ftpd/ftpcmd.y @@ -673,7 +673,7 @@ cmd maxtimeout); } else { timeout = $6.i; - (void) alarm((unsigned) timeout); + (void) alarm(timeout); reply(200, "Maximum IDLE time set to %d seconds", timeout); @@ -1275,7 +1275,7 @@ yylex(void) case CMD: (void) signal(SIGALRM, toolong); - (void) alarm((unsigned) timeout); + (void) alarm(timeout); if (getline(cbuf, sizeof(cbuf)-1, stdin) == NULL) { reply(221, "You could at least say goodbye."); dologout(0); @@ -1494,7 +1494,7 @@ copy(char *s) { char *p; - p = malloc((unsigned) strlen(s) + 1); + p = malloc(strlen(s) + 1); if (p == NULL) fatalerror("Ran out of memory."); (void) strcpy(p, s); |