Make some more string conversions available to plugins
[obnox/wireshark/wip.git] / cmdarg_err.h
index e50b89a8a53b917263108722de57820f6055bf50..be18da281b1d69c48d677cd2c29d936db17964de 100644 (file)
@@ -3,8 +3,8 @@
  *
  * $Id$
  *
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
  * This program is free software; you can redistribute it and/or
@@ -32,12 +32,22 @@ extern "C" {
 /*
  * Report an error in command-line arguments.
  */
+#if __GNUC__ >= 2
+extern void cmdarg_err(const char *fmt, ...)
+    __attribute__((format (printf, 1, 2)));
+#else
 extern void cmdarg_err(const char *fmt, ...);
+#endif
 
 /*
  * Report additional information for an error in command-line arguments.
  */
+#if __GNUC__ >= 2
+extern void cmdarg_err_cont(const char *fmt, ...)
+    __attribute__((format (printf, 1, 2)));
+#else
 extern void cmdarg_err_cont(const char *fmt, ...);
+#endif
 
 #ifdef __cplusplus
 }