X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b9e0388a118e84f002ae0da6c7a31bdbd89a73bb..9f8fee3f6c52b4ee18030b7f7255da1ef8588ce6:/sbr/error.c diff --git a/sbr/error.c b/sbr/error.c index 184c9509..c23c3dfa 100644 --- a/sbr/error.c +++ b/sbr/error.c @@ -17,7 +17,7 @@ * print out error message */ void -advise (char *what, char *fmt, ...) +advise (const char *what, const char *fmt, ...) { va_list ap; @@ -31,7 +31,7 @@ advise (char *what, char *fmt, ...) * print out error message and exit */ void -adios (char *what, const char *fmt, ...) +adios (const char *what, const char *fmt, ...) { va_list ap; @@ -60,7 +60,7 @@ admonish (char *what, char *fmt, ...) * main routine for printing error messages. */ void -advertise (char *what, char *tail, const char *fmt, va_list ap) +advertise (const char *what, char *tail, const char *fmt, va_list ap) { int eindex = errno; char buffer[BUFSIZ], err[BUFSIZ]; @@ -85,7 +85,7 @@ advertise (char *what, char *tail, const char *fmt, va_list ap) if (*what) { iov->iov_len = strlen (iov->iov_base = " "); iov++; - iov->iov_len = strlen (iov->iov_base = what); + iov->iov_len = strlen (iov->iov_base = (void*)what); iov++; iov->iov_len = strlen (iov->iov_base = ": "); iov++;