diff src/xmms-sid.c @ 297:ac9a484e3430

Make XSERR into function. Use ISO C99 variadic macro style instead of non-portable gcc style.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 25 Dec 2004 18:58:02 +0000
parents f0ece2d20094
children 5db529b397bd
line wrap: on
line diff
--- a/src/xmms-sid.c	Sat Dec 25 18:57:00 2004 +0000
+++ b/src/xmms-sid.c	Sat Dec 25 18:58:02 2004 +0000
@@ -26,6 +26,8 @@
 #include <stdlib.h>
 #endif
 
+#include <stdarg.h>
+
 #include <xmms/plugin.h>
 #include <xmms/util.h>
 
@@ -94,6 +96,18 @@
 
 
 /*
+ * Error messages
+ */
+void xs_error(const char *fmt, ...)
+{
+ va_list ap;
+ fprintf(stderr, "XMMS-SID: ");
+ va_start(ap);
+ vfprintf(stderr, fmt, ap);
+ va_end(ap); 
+}
+
+/*
  * Initialization functions
  */
 void xs_reinit(void)