Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
42d4edc0
Commit
42d4edc0
authored
Mar 25, 2003
by
J.W. Schultz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed log_transfer() It was no more than a conditional
rprintf() with an unused param.
parent
fbc0bc4d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
22 deletions
+8
-22
log.c
log.c
+0
-14
receiver.c
receiver.c
+4
-4
sender.c
sender.c
+4
-4
No files found.
log.c
View file @
42d4edc0
...
...
@@ -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
);
}
receiver.c
View file @
42d4edc0
...
...
@@ -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 */
...
...
sender.c
View file @
42d4edc0
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment