Commit 26adedc2 26adedc2563a359bfdab035725443cfd01ed14ef by Sergey Poznyakoff

New function mu_verror().

1 parent 34554b52
...@@ -53,6 +53,14 @@ mu_syslog_error_printer (const char *fmt, va_list ap) ...@@ -53,6 +53,14 @@ mu_syslog_error_printer (const char *fmt, va_list ap)
53 static error_pfn_t mu_error_printer = mu_default_error_printer; 53 static error_pfn_t mu_error_printer = mu_default_error_printer;
54 54
55 int 55 int
56 mu_verror (const char *fmt, va_list ap)
57 {
58 if (mu_error_printer)
59 return (*mu_error_printer) (fmt, ap);
60 return 0;
61 }
62
63 int
56 mu_error (const char *fmt, ...) 64 mu_error (const char *fmt, ...)
57 { 65 {
58 int status; 66 int status;
......