* [gentoo-commits] gentoo-x86 commit in media-plugins/vdr-softplay/files: vdr-softplay-0.0.2.20080421-glibc-2.10.patch
@ 2009-08-09 20:15 Samuli Suominen (ssuominen)
0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2009-08-09 20:15 UTC (permalink / raw
To: gentoo-commits
ssuominen 09/08/09 20:15:39
Added: vdr-softplay-0.0.2.20080421-glibc-2.10.patch
Log:
Fix building with GLIBC 2.10+ wrt #274079.
(Portage version: 2.2_rc36/cvs/Linux x86_64)
Revision Changes Path
1.1 media-plugins/vdr-softplay/files/vdr-softplay-0.0.2.20080421-glibc-2.10.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-softplay/files/vdr-softplay-0.0.2.20080421-glibc-2.10.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-softplay/files/vdr-softplay-0.0.2.20080421-glibc-2.10.patch?rev=1.1&content-type=text/plain
Index: vdr-softplay-0.0.2.20080421-glibc-2.10.patch
===================================================================
diff -ur softplay-cvs-20080421.orig/PlayList.c softplay-cvs-20080421/PlayList.c
--- softplay-cvs-20080421.orig/PlayList.c 2008-04-21 12:57:46.000000000 +0300
+++ softplay-cvs-20080421/PlayList.c 2009-08-09 23:14:13.000000000 +0300
@@ -625,7 +625,7 @@
};
SetFilename(Filename);
- char *ncopy=rindex(Filename,'/');
+ char *ncopy=const_cast<char*> (rindex(Filename,'/'));
int count=(int) (ncopy-Filename);
if ( ncopy && count > STR_LENGTH) {
fprintf(stderr,"Could not extract directory!\n");
diff -ur softplay-cvs-20080421.orig/softplay.c softplay-cvs-20080421/softplay.c
--- softplay-cvs-20080421.orig/softplay.c 2008-04-21 12:57:46.000000000 +0300
+++ softplay-cvs-20080421/softplay.c 2009-08-09 23:17:13.000000000 +0300
@@ -49,7 +49,7 @@
sizeof(myDir): (unsigned int)(ToPos-path+1));
printf("MyDir '%s'\n",myDir);
PrepareDirectory(myDir);
- myToPos=index(ToPos+1,'/');
+ myToPos=const_cast<char*> (index(ToPos+1,'/'));
AddSubMenu(new cMenuDirectory(path,EditList,myToPos));
} else {
printf("Open only directory '%s'.\n",path);
@@ -592,7 +592,7 @@
bool IsM3UFile( const char * const Filename) {
char * pos;
- pos = rindex(Filename,'.');
+ pos = const_cast<char*> (rindex(Filename,'.'));
if ( !pos )
return false;
if ( !strcmp(pos,".m3u") ) {
@@ -614,10 +614,10 @@
void chomp(const char *const str) {
char *pos;
- pos = index(str,'\n');
+ pos = const_cast<char*> (index(str,'\n'));
if (pos)
*pos=0;
- pos = index(str,'\r');
+ pos = const_cast<char*> (index(str,'\r'));
if (pos)
*pos=0;
};
diff -ur softplay-cvs-20080421.orig/SoftPlayer.c softplay-cvs-20080421/SoftPlayer.c
--- softplay-cvs-20080421.orig/SoftPlayer.c 2008-04-21 12:57:46.000000000 +0300
+++ softplay-cvs-20080421/SoftPlayer.c 2009-08-09 23:14:57.000000000 +0300
@@ -409,7 +409,7 @@
};
bool IsStreamFile( const char * const Filename) {
- char * pos;
+ const char * pos;
pos = rindex(Filename,'.');
printf("IsStream %s\n",pos);
if ( !pos )
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-09 20:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-09 20:15 [gentoo-commits] gentoo-x86 commit in media-plugins/vdr-softplay/files: vdr-softplay-0.0.2.20080421-glibc-2.10.patch Samuli Suominen (ssuominen)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox