Commit 42d4edc0 authored by J.W. Schultz's avatar J.W. Schultz

removed log_transfer() It was no more than a conditional

rprintf() with an unused param.
parent fbc0bc4d
......@@ -572,17 +572,3 @@ void log_exit(int code, const char *file, int line)
name, code, file, line);
}
}
/*
* Log the incoming transfer of a file for interactive use,
* this will be called at the end where the client was run.
* Called when a file starts to be transferred.
*/
void log_transfer(struct file_struct *file, const char *fname)
{
extern int verbose;
if (!verbose) return;
rprintf(FINFO, "%s\n", fname);
}
......@@ -357,8 +357,8 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
fname = local_name;
if (dry_run) {
if (!am_server) {
log_transfer(file, fname);
if (!am_server && verbose) { /* log transfer */
rprintf(FINFO, "%s\n", fname);
}
continue;
}
......@@ -444,8 +444,8 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
cleanup_set(fnametmp, fname, file, buf, fd1, fd2);
if (!am_server) {
log_transfer(file, fname);
if (!am_server && verbose) { /* log transfer */
rprintf(FINFO, "%s\n", fname);
}
/* recv file data */
......
......@@ -158,8 +158,8 @@ void send_files(struct file_list *flist,int f_out,int f_in)
rprintf(FINFO,"send_files(%d,%s)\n",i,fname);
if (dry_run) {
if (!am_server) {
log_transfer(file, fname+offset);
if (!am_server && verbose) { /* log transfer */
rprintf(FINFO, "%s\n", fname+offset);
}
write_int(f_out,i);
continue;
......@@ -220,8 +220,8 @@ void send_files(struct file_list *flist,int f_out,int f_in)
if (!read_batch)
rprintf(FINFO,"calling match_sums %s\n",fname);
if (!am_server) {
log_transfer(file, fname+offset);
if (!am_server && verbose) { /* log transfer */
rprintf(FINFO, "%s\n", fname+offset);
}
set_compression(fname);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment