From 4df7ae4169b43b9a76d596901d239a1f5622be0e Mon Sep 17 00:00:00 2001 From: sbd Date: Wed, 8 Feb 2012 00:19:42 +0000 Subject: Comply the the C++ spec by making a variable that is assigned the result of a strchr(const char *, int c) call a constant. (i.e. use obache@ suggestion as a better way to fix the strchr problem.) --- audio/darkice/patches/patch-src_Util.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'audio/darkice/patches') diff --git a/audio/darkice/patches/patch-src_Util.cpp b/audio/darkice/patches/patch-src_Util.cpp index 2de8b1e917a..22ee5c33ca8 100644 --- a/audio/darkice/patches/patch-src_Util.cpp +++ b/audio/darkice/patches/patch-src_Util.cpp @@ -1,13 +1,13 @@ -$NetBSD: patch-src_Util.cpp,v 1.1 2012/02/04 07:53:26 sbd Exp $ +$NetBSD: patch-src_Util.cpp,v 1.2 2012/02/08 00:19:42 sbd Exp $ --- src/Util.cpp.orig 2005-04-17 10:58:09.000000000 +0000 +++ src/Util.cpp -@@ -288,7 +288,7 @@ Util :: fileAddDate ( const char * str ) - strftime( strdate, 128, "[%m-%d-%Y-%H-%M-%S]", localtime (&now)); - - // search for the part before the extension of the file name -- if ( !(last = strrchr( str, '.')) ) { -+ if ( !(last = (char *) strrchr( str, '.')) ) { - last = (char *) str + strlen( str); - } - +@@ -276,7 +276,7 @@ Util :: fileAddDate ( const char * str ) + unsigned int size; + char * s; + char * strdate; +- char * last; ++ const char * last; + time_t now; + + if ( !str ) { -- cgit v1.2.3