Some casts.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4768 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -436,7 +436,7 @@ void pbsz(int size)
|
|||||||
buffer_size = size;
|
buffer_size = size;
|
||||||
}
|
}
|
||||||
if(new != size)
|
if(new != size)
|
||||||
reply(200, "PBSZ=%lu", new);
|
reply(200, "PBSZ=%lu", (unsigned long)new);
|
||||||
else
|
else
|
||||||
reply(200, "OK");
|
reply(200, "OK");
|
||||||
}
|
}
|
||||||
|
@@ -324,14 +324,16 @@ cmd
|
|||||||
}
|
}
|
||||||
| STAT CRLF
|
| STAT CRLF
|
||||||
{
|
{
|
||||||
if(oobflag){
|
if(oobflag){
|
||||||
if (file_size != (off_t) -1)
|
if (file_size != (off_t) -1)
|
||||||
reply(213, "Status: %ld of %ld bytes transferred",
|
reply(213, "Status: %ld of %ld bytes transferred",
|
||||||
byte_count, file_size);
|
(unsigned long)byte_count,
|
||||||
else
|
(unsigned long)file_size);
|
||||||
reply(213, "Status: %ld bytes transferred", byte_count);
|
else
|
||||||
}else
|
reply(213, "Status: %ld bytes transferred",
|
||||||
statcmd();
|
(unsigned long)byte_count);
|
||||||
|
}else
|
||||||
|
statcmd();
|
||||||
}
|
}
|
||||||
| DELE check_login_no_guest SP pathname CRLF
|
| DELE check_login_no_guest SP pathname CRLF
|
||||||
{
|
{
|
||||||
@@ -1382,7 +1384,7 @@ sizecmd(char *filename)
|
|||||||
case TYPE_A: {
|
case TYPE_A: {
|
||||||
FILE *fin;
|
FILE *fin;
|
||||||
int c;
|
int c;
|
||||||
off_t count;
|
size_t count;
|
||||||
struct stat stbuf;
|
struct stat stbuf;
|
||||||
fin = fopen(filename, "r");
|
fin = fopen(filename, "r");
|
||||||
if (fin == NULL) {
|
if (fin == NULL) {
|
||||||
@@ -1403,7 +1405,7 @@ sizecmd(char *filename)
|
|||||||
}
|
}
|
||||||
fclose(fin);
|
fclose(fin);
|
||||||
|
|
||||||
reply(213, "%ld", count);
|
reply(213, "%ld", (unsigned long)count);
|
||||||
break; }
|
break; }
|
||||||
default:
|
default:
|
||||||
reply(504, "SIZE not implemented for Type %c.", "?AEIL"[type]);
|
reply(504, "SIZE not implemented for Type %c.", "?AEIL"[type]);
|
||||||
|
@@ -1096,10 +1096,10 @@ dataconn(char *name, off_t size, char *mode)
|
|||||||
|
|
||||||
file_size = size;
|
file_size = size;
|
||||||
byte_count = 0;
|
byte_count = 0;
|
||||||
if (size != (off_t) -1)
|
if (size >= 0)
|
||||||
snprintf(sizebuf, sizeof(sizebuf), " (%ld bytes)", size);
|
snprintf(sizebuf, sizeof(sizebuf), " (%ld bytes)", (long)size);
|
||||||
else
|
else
|
||||||
strcpy(sizebuf, "");
|
strcpy(sizebuf, "");
|
||||||
if (pdata >= 0) {
|
if (pdata >= 0) {
|
||||||
struct sockaddr_in from;
|
struct sockaddr_in from;
|
||||||
int s, fromlen = sizeof(from);
|
int s, fromlen = sizeof(from);
|
||||||
|
Reference in New Issue
Block a user