if (!io_buffer_count || no_flush) return;
if (io_multiplexing_out) {
- mplex_write(fd, 0, io_buffer, io_buffer_count);
+ mplex_write(fd, FNONE, io_buffer, io_buffer_count);
} else {
writefd_unbuffered(fd, io_buffer, io_buffer_count);
}
/* a generic logging routine for send/recv, with parameter
substitiution */
-static void log_formatted(int fd,
+static void log_formatted(enum logcode code,
char *format, char *op, struct file_struct *file,
struct stats *initial_stats)
{
s = p+l;
}
- rprintf(fd,"%s\n", buf);
+ rprintf(code,"%s\n", buf);
}
/* log the outgoing transfer of a file */
struct in_addr socket_address = {INADDR_ANY};
-void usage(int F)
+void usage(enum logcode F)
{
rprintf(F,"rsync version %s Copyright Andrew Tridgell and Paul Mackerras\n\n",
VERSION);
#define MPLEX_BASE 7
-enum logcode {FERROR=1, FINFO=2, FLOG=3};
+enum logcode {FNONE=0, FERROR=1, FINFO=2, FLOG=3};
#include "errcode.h"