diff options
author | sbd <sbd@pkgsrc.org> | 2012-02-08 00:19:42 +0000 |
---|---|---|
committer | sbd <sbd@pkgsrc.org> | 2012-02-08 00:19:42 +0000 |
commit | 4df7ae4169b43b9a76d596901d239a1f5622be0e (patch) | |
tree | ab316184e4f692f3a85a0b8f0dae40cb57946041 /audio/darkice/patches | |
parent | 764d65f6ea3177b75040d738e432206f4234a382 (diff) | |
download | pkgsrc-4df7ae4169b43b9a76d596901d239a1f5622be0e.tar.gz |
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.)
Diffstat (limited to 'audio/darkice/patches')
-rw-r--r-- | audio/darkice/patches/patch-src_Util.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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 ) { |