From 844cab6e5d1795da3c94198f883971fa4cc68016 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 29 May 2005 19:31:09 +0000 Subject: [PATCH] make one formal param const --- common/strutils.c | 2 +- common/strutils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/strutils.c b/common/strutils.c index a8f32fbd0..f7a781b9e 100644 --- a/common/strutils.c +++ b/common/strutils.c @@ -138,7 +138,7 @@ stringToStream( XWStreamCtxt* stream, XP_UCHAR* str ) * ****************************************************************************/ XP_UCHAR* -copyString( MPFORMAL XP_UCHAR* instr ) +copyString( MPFORMAL const XP_UCHAR* instr ) { XP_UCHAR* result = (XP_UCHAR*)NULL; if ( !!instr ) { diff --git a/common/strutils.h b/common/strutils.h index 4e554096d..91bfc3838 100644 --- a/common/strutils.h +++ b/common/strutils.h @@ -41,7 +41,7 @@ XP_UCHAR* stringFromStream( MPFORMAL XWStreamCtxt* stream ); XP_U16 stringFromStreamHere( XWStreamCtxt* stream, XP_UCHAR* buf, XP_U16 len ); void stringToStream( XWStreamCtxt* stream, XP_UCHAR* str ); -XP_UCHAR* copyString( MPFORMAL XP_UCHAR* instr ); +XP_UCHAR* copyString( MPFORMAL const XP_UCHAR* instr ); void replaceStringIfDifferent( MPFORMAL XP_UCHAR** curLoc, XP_UCHAR* newStr ); XP_UCHAR* emptyStringIfNull( XP_UCHAR* str );