From: Adam Dickmeiss Date: Thu, 16 Oct 2003 10:37:06 +0000 (+0000) Subject: Add const to odr_perror message string X-Git-Tag: YAZ.2.0.5.pre2~16 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=668acdac33bd70daab674b47cd8654c83327e027;p=yaz-moved-to-github.git Add const to odr_perror message string --- diff --git a/CHANGELOG b/CHANGELOG index adb3c54..84511c9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,8 @@ Possible compatibility problems with earlier versions marked with '*'. --- (IN PROGRESS) +Change prototype of odr_perror: add const to message string. + New function yaz_log_reopen which reopens log file (for log rotate, etc.) * Blocking parameter for COMSTACK cs_create is now a bit mask rather diff --git a/include/yaz/odr.h b/include/yaz/odr.h index 40a458f..6d1c30a 100644 --- a/include/yaz/odr.h +++ b/include/yaz/odr.h @@ -23,7 +23,7 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * - * $Id: odr.h,v 1.12 2003-05-24 19:20:14 adam Exp $ + * $Id: odr.h,v 1.13 2003-10-16 10:37:06 adam Exp $ */ #ifndef ODR_H @@ -187,7 +187,7 @@ YAZ_EXPORT int odr_geterrorx(ODR o, int *x); YAZ_EXPORT void odr_seterror(ODR o, int errorno, int errorid); YAZ_EXPORT void odr_setelement(ODR o, const char *addinfo); YAZ_EXPORT char *odr_getelement(ODR o); -YAZ_EXPORT void odr_perror(ODR o, char *message); +YAZ_EXPORT void odr_perror(ODR o, const char *message); YAZ_EXPORT void odr_setprint(ODR o, FILE *file); YAZ_EXPORT ODR odr_createmem(int direction); YAZ_EXPORT void odr_reset(ODR o); diff --git a/odr/odr.c b/odr/odr.c index da919a5..aaaec46 100644 --- a/odr/odr.c +++ b/odr/odr.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: odr.c,v 1.45 2003-06-19 21:09:25 adam Exp $ + * $Id: odr.c,v 1.46 2003-10-16 10:37:06 adam Exp $ * */ #if HAVE_CONFIG_H @@ -44,7 +44,7 @@ char *odr_errmsg(int n) return odr_errlist[n]; } -void odr_perror(ODR o, char *message) +void odr_perror(ODR o, const char *message) { const char *e = odr_getelement(o); int err, x;