Some casts.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4768 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1998-04-13 10:23:33 +00:00
parent dc2e9fb093
commit 5f4f0ccfc6
3 changed files with 16 additions and 14 deletions

View File

@@ -1096,10 +1096,10 @@ dataconn(char *name, off_t size, char *mode)
file_size = size;
byte_count = 0;
if (size != (off_t) -1)
snprintf(sizebuf, sizeof(sizebuf), " (%ld bytes)", size);
if (size >= 0)
snprintf(sizebuf, sizeof(sizebuf), " (%ld bytes)", (long)size);
else
strcpy(sizebuf, "");
strcpy(sizebuf, "");
if (pdata >= 0) {
struct sockaddr_in from;
int s, fromlen = sizeof(from);