errno = save_errno;
}
-static void tftp_progress_init(const char *file)
+static void tftp_progress_init(void)
{
- G.file = file;
progress_meter(-1);
}
static void tftp_progress_done(void)
progress_meter(0);
}
#else
-# define tftp_progress_init(file) ((void)0)
-# define tftp_progress_done() ((void)0)
+# define tftp_progress_init() ((void)0)
+# define tftp_progress_done() ((void)0)
#endif
#if ENABLE_FEATURE_TFTP_BLOCKSIZE
* we look at server's reply later */
G.size = st.st_size;
if (remote_file && st.st_size)
- tftp_progress_init(remote_file);
+ tftp_progress_init();
# endif
}
#endif
if (res) {
G.size = bb_strtoull(res, NULL, 10);
if (remote_file && G.size)
- tftp_progress_init(remote_file);
+ tftp_progress_init();
}
}
# endif
remote_file, local_file);
# endif
+# if ENABLE_FEATURE_TFTP_PROGRESS_BAR
+ G.file = remote_file;
+# endif
result = tftp_protocol(
NULL /*our_lsa*/, peer_lsa,
local_file, remote_file