* src/filegui.c (rd_widgets) [_LARGE_FILES]: Use format string

capable of supporting 64 bit file sizes.
* vfs/fish.c (fish_linear_start) [_LARGE_FILES]: Use format string
capable of supporting 64 bit file sizes.
This commit is contained in:
Pavel Tsekov 2007-08-23 13:16:39 +00:00
parent e6980eb09a
commit e2424ae139
4 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-08-23 Pavel Tsekov <ptsekov@gmx.net>
* filegui.c (rd_widgets) [_LARGE_FILES]: Use format string
capable of supporting 64 bit file sizes.
2007-08-23 Pavel Tsekov <ptsekov@gmx.net>
* mountlist.c (fstype_to_string): Define only when

View File

@ -524,7 +524,7 @@ static struct {
N_("&No"), BY - 2, 37, REPLACE_NO}, {
N_("&Yes"), BY - 2, 28, REPLACE_YES}, {
N_("Overwrite this target?"), BY - 2, 4, 0}, {
#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
#if (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) || (defined _LARGE_FILES && _LARGE_FILES)
N_("Target date: %s, size %llu"), 6, 4, 0}, {
N_("Source date: %s, size %llu"), 5, 4, 0}
#else

View File

@ -1,3 +1,8 @@
2007-08-23 Pavel Tsekov <ptsekov@gmx.net>
* fish.c (fish_linear_start) [_LARGE_FILES]: Use format string
capable of supporting 64 bit file sizes.
2007-05-07 Pavel Tsekov <ptsekov@gmx.net>
* fish.c: Remove all references to HAVE_HACKED_SSH.

View File

@ -632,7 +632,7 @@ fish_linear_start (struct vfs_class *me, struct vfs_s_fh *fh, off_t offset)
if (offset != PRELIM) ERRNOR (E_REMOTE, 0);
fh->linear = LS_LINEAR_OPEN;
fh->u.fish.got = 0;
#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 || (defined _LARGE_FILES && _LARGE_FILES)
if (sscanf( reply_str, "%llu", &fh->u.fish.total )!=1)
#else
if (sscanf( reply_str, "%u", &fh->u.fish.total )!=1)