* University of Maryland at College Park
*/
/*
- * $Id: error.c,v 1.8.4.1.2.2.2.4 2003/04/27 01:17:50 martinea Exp $
+ * $Id: error.c,v 1.18 2003/04/27 01:17:19 martinea Exp $
*
* error handling common to Amanda programs
*/
* Prints an error message, calls the functions installed via onerror(),
* then exits.
*/
-printf_arglist_function(void error, char *, format)
+printf_arglist_function(void error, const char *, format)
{
va_list argp;
int i;
/* format and output the error message */
arglist_start(argp, format);
- ap_vsnprintf(linebuf, sizeof(linebuf), format, argp);
+ vsnprintf(linebuf, sizeof(linebuf), format, argp);
arglist_end(argp);
output_error_message(linebuf);
* Prints an error message, calls the functions installed via onerror(),
* then calls abort() to drop core.
*/
-printf_arglist_function(void errordump, char *, format)
+printf_arglist_function(void errordump, const char *, format)
{
va_list argp;
int i;
/* format error message */
arglist_start(argp, format);
- ap_vsnprintf(linebuf, sizeof(linebuf), format, argp);
+ vsnprintf(linebuf, sizeof(linebuf), format, argp);
arglist_end(argp);
output_error_message(linebuf);