Add const to odr_perror message string
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 16 Oct 2003 10:37:06 +0000 (10:37 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 16 Oct 2003 10:37:06 +0000 (10:37 +0000)
CHANGELOG
include/yaz/odr.h
odr/odr.c

index adb3c54..84511c9 100644 (file)
--- 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
index 40a458f..6d1c30a 100644 (file)
@@ -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);
index da919a5..aaaec46 100644 (file)
--- 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;