va_end(args);
}
-static int agerr_va(agerrlevel_t level, char *fmt, va_list args)
+static int agerr_va(agerrlevel_t level, const char *fmt, va_list args)
{
agerrlevel_t lvl;
return 0;
}
-int agerr(agerrlevel_t level, char *fmt, ...)
+int agerr(agerrlevel_t level, const char *fmt, ...)
{
va_list args;
return agerr_va(level, fmt, args);
}
-void agerrorf(char *fmt, ...)
+void agerrorf(const char *fmt, ...)
{
va_list args;
agerr_va(AGERR, fmt, args);
}
-void agwarningf(char *fmt, ...)
+void agwarningf(const char *fmt, ...)
{
va_list args;
typedef int (*agusererrf) (char*);
extern agerrlevel_t agseterr(agerrlevel_t);
extern char *aglasterr(void);
-extern int agerr(agerrlevel_t level, char *fmt, ...);
-extern void agerrorf(char *fmt, ...);
-extern void agwarningf(char *fmt, ...);
+extern int agerr(agerrlevel_t level, const char *fmt, ...);
+extern void agerrorf(const char *fmt, ...);
+extern void agwarningf(const char *fmt, ...);
extern int agerrors(void);
extern int agreseterrors(void);
extern agusererrf agseterrf(agusererrf);