diff lib/protocols.c @ 372:44b792841e3f

2003-1-18 Brian Masney <masneyb@gftp.org> * lib/misc.c lib/protocols.c lib/rfc2068.c lib/rfc959.c - if _LARGEFILE_SOURCE is defined, explicitly cast the file sizes to long long so that the %lld format will be correct
author masneyb
date Mon, 19 Jan 2004 22:23:04 +0000
parents d5409bf03ff1
children 14da115b149b
line wrap: on
line diff
--- a/lib/protocols.c	Mon Jan 19 12:23:52 2004 +0000
+++ b/lib/protocols.c	Mon Jan 19 22:23:04 2004 +0000
@@ -2147,12 +2147,15 @@
       tempfle = templist->data;
 #if defined (_LARGEFILE_SOURCE)
       printf ("%s:%s:%lld:%lld:%s:%s:%s\n", 
+              tempfle->file, tempfle->destfile, 
+              (long long) tempfle->size, (long long) tempfle->startsize, 
+              tempfle->user, tempfle->group, tempfle->attribs);
 #else
       printf ("%s:%s:%ld:%ld:%s:%s:%s\n", 
-#endif
               tempfle->file, tempfle->destfile, 
               tempfle->size, tempfle->startsize, 
               tempfle->user, tempfle->group, tempfle->attribs);
+#endif
       if (templist->next == NULL)
         break;
     }
@@ -2163,12 +2166,15 @@
       tempfle = templist->data;
 #if defined (_LARGEFILE_SOURCE)
       printf ("%s:%s:%lld:%lld:%s:%s:%s\n", 
+              tempfle->file, tempfle->destfile, 
+              (long long) tempfle->size, (long long) tempfle->startsize, 
+              tempfle->user, tempfle->group, tempfle->attribs);
 #else
       printf ("%s:%s:%ld:%ld:%s:%s:%s\n", 
-#endif
               tempfle->file, tempfle->destfile, 
               tempfle->size, tempfle->startsize, 
               tempfle->user, tempfle->group, tempfle->attribs);
+#endif
       if (templist == list)
         break;
     }