X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=common-src%2Ferror.c;h=1b6f9478a02e663daa1a2699d1cd6226b3aee251;hb=1194fb66aa28d9929c3f2bef3cc6c1c3f40a60a4;hp=5ce8b468bc2d9a3bce1f58cba589a66f80979f2d;hpb=2df780bff19c457b0debb7adc29972a0bc2a5dc2;p=debian%2Famanda diff --git a/common-src/error.c b/common-src/error.c index 5ce8b46..1b6f947 100644 --- a/common-src/error.c +++ b/common-src/error.c @@ -25,7 +25,7 @@ * 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 */ @@ -97,7 +97,7 @@ char *msg; * 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; @@ -107,7 +107,7 @@ printf_arglist_function(void error, char *, format) /* 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); @@ -126,7 +126,7 @@ printf_arglist_function(void error, char *, format) * 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; @@ -135,7 +135,7 @@ printf_arglist_function(void errordump, char *, format) /* 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);