Added rsyserr().

This commit is contained in:
Wayne Davison
2004-05-15 19:31:05 +00:00
parent 630e3c408b
commit a3c8b36863

View File

@@ -38,6 +38,16 @@ struct exclude_list_struct server_exclude_list;
va_end(ap);
}
void rsyserr(UNUSED(enum logcode code), int errcode, const char *format, ...)
{
va_list ap;
fputs(RSYNC_NAME ": ", stderr);
va_start(ap, format);
vfprintf(stderr, format, ap);
va_end(ap);
fprintf(stderr, ": %s (%d)\n", strerror(errcode), errcode);
}
void _exit_cleanup(int code, const char *file, int line)
{
fprintf(stderr, "exit(%d): %s(%d)\n",