From dcd8ad63316eac672492bc18112bbbb52811c3fc Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 24 Apr 2015 05:35:48 +0200 Subject: More structural changes to get ready for stand-alone event engines --- error.c | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 error.c (limited to 'error.c') diff --git a/error.c b/error.c deleted file mode 100644 index f242209..0000000 --- a/error.c +++ /dev/null @@ -1,24 +0,0 @@ -#include -#include - -#include "config.h" -#include "error.h" - -void pcilib_print_error(const char *msg, ...) { - va_list va; - - va_start(va, msg); - vprintf(msg, va); - va_end(va); - printf("\n"); -} - - -int pcilib_set_error_handler(void (*err)(const char *msg, ...), void (*warn)(const char *msg, ...)) { - if (err) pcilib_error = err; - else pcilib_error = pcilib_print_error; - if (warn) pcilib_warning = warn; - else pcilib_warning = pcilib_print_error; - - return 0; -} -- cgit v1.2.3