summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Bornkessel <hd_brummy@gentoo.org>2010-01-07 21:09:25 +0000
committerJörg Bornkessel <hd_brummy@gentoo.org>2010-01-07 21:09:25 +0000
commitdc131d90962782913fe3d824b57a77e6b6113b68 (patch)
tree23f025a264741da21cdc3e77a8237647a2d730e0 /media-video/noad
parentFixing postgres dep (diff)
downloadgentoo-2-dc131d90962782913fe3d824b57a77e6b6113b68.tar.gz
gentoo-2-dc131d90962782913fe3d824b57a77e6b6113b68.tar.bz2
gentoo-2-dc131d90962782913fe3d824b57a77e6b6113b68.zip
2
Diffstat (limited to 'media-video/noad')
-rw-r--r--media-video/noad/files/patches-0.7.x/noad-0.7.0_gcc-4.4.diff59
1 files changed, 59 insertions, 0 deletions
diff --git a/media-video/noad/files/patches-0.7.x/noad-0.7.0_gcc-4.4.diff b/media-video/noad/files/patches-0.7.x/noad-0.7.0_gcc-4.4.diff
new file mode 100644
index 000000000000..c3cc87b7df97
--- /dev/null
+++ b/media-video/noad/files/patches-0.7.x/noad-0.7.0_gcc-4.4.diff
@@ -0,0 +1,59 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_gcc4.4.dpatch by <Gerald Dachs <gda@dachsweb.de>>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad noad-0.7.0~/svdrpc.cpp noad-0.7.0/svdrpc.cpp
+--- noad-0.7.0~/svdrpc.cpp 2009-12-22 23:20:50.000000000 +0100
++++ noad-0.7.0/svdrpc.cpp 2009-12-22 23:23:11.000000000 +0100
+@@ -256,7 +256,7 @@
+ {
+ char *baseName = NULL;
+ char *cp = NULL;
+- char *vend = strchr(filename,'/');
++ const char *vend = strchr(filename,'/');
+ if( vend )
+ vend = strchr(vend+1,'/');
+ if( vend )
+@@ -265,9 +265,9 @@
+ asprintf(&baseName,"mesg %s %s",msg, filename);
+ if( baseName[strlen(baseName)-1] == '/' )
+ baseName[strlen(baseName)-1] = '\0';
+- vend = strrchr(baseName, '/');
+- if( vend )
+- *vend = '\0';
++ char *vend1 = strrchr(baseName, '/');
++ if( vend1 )
++ *vend1 = '\0';
+ asprintf(&cp,"%s\r\n",baseName);
+
+ VDRMessage(cp);
+diff -urNad noad-0.7.0~/vdr_cl.cpp noad-0.7.0/vdr_cl.cpp
+--- noad-0.7.0~/vdr_cl.cpp 2009-12-22 23:20:50.000000000 +0100
++++ noad-0.7.0/vdr_cl.cpp 2009-12-22 23:20:50.000000000 +0100
+@@ -1200,7 +1200,7 @@
+ sortBuffer = NULL;
+ fileName = strdup(FileName);
+ FileName += strlen(VideoDirectory) + 1;
+- char *p = strrchr(FileName, '/');
++ const char *p = strrchr(FileName, '/');
+
+ name = NULL;
+ summary = NULL;
+
+diff -Naur noad-0.7.0.orig/showindex.cpp noad-0.7.0/showindex.cpp
+--- noad-0.7.0.orig/showindex.cpp 2010-01-05 19:22:48.000000000 +0100
++++ noad-0.7.0/showindex.cpp 2010-01-05 19:23:31.000000000 +0100
+@@ -46,8 +46,8 @@
+ uchar PictureType; // current picture-type
+ int Length; // frame-lenght of current frame
+ char pictypes[]= { 'U','I','P','B' };
+- char *indents[]= { "",""," "," " };
+- char *indents2[]= { ""," "," ","" };
++ const char *indents[]= { "",""," "," " };
++ const char *indents2[]= { ""," "," ","" };
+ int lastFile=0;
+ int lastOffset = 0;
+ unsigned char readBuffer[BYTES_TO_READ+1];