diff options
author | sbd <sbd> | 2012-02-08 00:19:42 +0000 |
---|---|---|
committer | sbd <sbd> | 2012-02-08 00:19:42 +0000 |
commit | f5c7f76872710b5975a4ed38b5c332c588546b32 (patch) | |
tree | ab316184e4f692f3a85a0b8f0dae40cb57946041 /audio | |
parent | 1d39d08a62078deeed9c1d54b37701efe4a7062a (diff) | |
download | pkgsrc-f5c7f76872710b5975a4ed38b5c332c588546b32.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')
-rw-r--r-- | audio/darkice/distinfo | 4 | ||||
-rw-r--r-- | audio/darkice/patches/patch-src_Util.cpp | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/audio/darkice/distinfo b/audio/darkice/distinfo index 0941cfa872d..b3ae66349d9 100644 --- a/audio/darkice/distinfo +++ b/audio/darkice/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.11 2012/02/04 07:53:26 sbd Exp $ +$NetBSD: distinfo,v 1.12 2012/02/08 00:19:42 sbd Exp $ SHA1 (darkice-0.17.1.tar.gz) = 2952961c8e99412d831ca619f152ba6774efefac RMD160 (darkice-0.17.1.tar.gz) = b6575b28190276d77e721e2ef15e8a93162693cc @@ -7,4 +7,4 @@ SHA1 (patch-aa) = 6f58c2ae94a9b199ac733fd4b0742178f46dc961 SHA1 (patch-ab) = 51cf308b209b933fe003775116d8b7d986e92476 SHA1 (patch-ac) = 4ba61f7544da079a6e6aaaf49e03ef7c6c3fb8ca SHA1 (patch-src_Makefile_in) = 5627f74907abe9ab0dc297ca8ae7378fe004d3cf -SHA1 (patch-src_Util.cpp) = 0721d889d4755c9251eda9248b59c74fea26d980 +SHA1 (patch-src_Util.cpp) = fe609e7f0c03e4c0b667b054a2035dae57e2dff8 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 ) { |