summaryrefslogtreecommitdiff
path: root/hlink.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-05-07 14:50:22 +0000
committerAndrew Tridgell <tridge@samba.org>1998-05-07 14:50:22 +0000
commit9486289ce452ab82ca8b3f16fae8c2ef5247a923 (patch)
tree30754dba06f938a6d3f0888e547520a8cd5e7cb2 /hlink.c
parent5d6bcd4472d7a88adc9be81987f02b58332e432c (diff)
downloadrsync-9486289ce452ab82ca8b3f16fae8c2ef5247a923.tar.gz
some large systematic changes to make socket conversion easier. The
biggest one is the use of rprintf() instead of fprintf()
Diffstat (limited to 'hlink.c')
-rw-r--r--hlink.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/hlink.c b/hlink.c
index 6b2c0605..ed6d75ec 100644
--- a/hlink.c
+++ b/hlink.c
@@ -19,7 +19,6 @@
#include "rsync.h"
-extern int am_server;
extern int dry_run;
extern int verbose;
@@ -113,7 +112,7 @@ static void hard_link_one(int i)
if (link_stat(f_name(&hlink_list[i]),&st2) != 0) {
if (do_link(f_name(&hlink_list[i-1]),f_name(&hlink_list[i])) != 0) {
if (verbose > 0)
- fprintf(FINFO,"link %s => %s : %s\n",
+ rprintf(FINFO,"link %s => %s : %s\n",
f_name(&hlink_list[i]),
f_name(&hlink_list[i-1]),strerror(errno));
return;
@@ -124,14 +123,14 @@ static void hard_link_one(int i)
if (do_unlink(f_name(&hlink_list[i])) != 0 ||
do_link(f_name(&hlink_list[i-1]),f_name(&hlink_list[i])) != 0) {
if (verbose > 0)
- fprintf(FINFO,"link %s => %s : %s\n",
+ rprintf(FINFO,"link %s => %s : %s\n",
f_name(&hlink_list[i]),
f_name(&hlink_list[i-1]),strerror(errno));
return;
}
}
if (verbose > 0)
- fprintf(FINFO,"%s => %s\n",
+ rprintf(FINFO,"%s => %s\n",
f_name(&hlink_list[i]),f_name(&hlink_list[i-1]));
}
#endif