* fish.c (file_store): Fix incorrect format string

for print_vfs_message().
* ftpfs.c (file_store): Likewise.
This commit is contained in:
Pavel Roskin 2001-10-20 07:04:31 +00:00
parent 3cdc394c36
commit 0c52fb0f99
3 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2001-10-20 Pavel Roskin <proski@gnu.org>
* fish.c (file_store): Fix incorrect format string
for print_vfs_message().
* ftpfs.c (file_store): Likewise.
2001-10-19 Pavel Roskin <proski@gnu.org>
* fish.c (command): Declare with the printf attribute to enable

View File

@ -498,8 +498,6 @@ file_store(vfs *me, vfs_s_super *super, char *name, char *localname)
"cat > \"/%s\"\n"
"cat > /dev/null\n"
"); echo '### 200'\n",
/* ")\n" Why can't it be like this?
"echo '### 200'\n", */
(unsigned long) s.st_size, name, name,
(unsigned long) (s.st_size >> 12),
((unsigned long) s.st_size) & (4096 - 1), name)
@ -524,8 +522,9 @@ file_store(vfs *me, vfs_s_super *super, char *name, char *localname)
}
disable_interrupt_key();
total += n;
print_vfs_message(_("fish: storing %s %d (%d)"),
was_error ? _("zeros") : _("file"), total, s.st_size);
print_vfs_message(_("fish: storing %s %d (%lu)"),
was_error ? _("zeros") : _("file"), total,
(unsigned long) s.st_size);
}
if ((get_reply (me, SUP.sockr, NULL, 0) != COMPLETE) || was_error)
ERRNOR (E_REMOTE, -1);

View File

@ -1377,8 +1377,8 @@ file_store(vfs *me, vfs_s_super *super, char *name, char *localname)
goto error_return;
}
total += n;
print_vfs_message(_("ftpfs: storing file %d (%d)"),
total, s.st_size);
print_vfs_message(_("ftpfs: storing file %d (%lu)"),
total, (unsigned long) s.st_size);
}
disable_interrupt_key();
close(sock);