*
* $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
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __CMDARG_ERR_H__
#define __CMDARG_ERR_H__
+#include <glib.h>
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/*
* 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
+ G_GNUC_PRINTF(1, 2);
/*
* 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
+ G_GNUC_PRINTF(1, 2);
#ifdef __cplusplus
}