1 |
hd_brummy 10/01/07 21:09:25 |
2 |
|
3 |
Added: noad-0.7.0_gcc-4.4.diff |
4 |
Log: |
5 |
2 |
6 |
|
7 |
Revision Changes Path |
8 |
1.1 media-video/noad/files/patches-0.7.x/noad-0.7.0_gcc-4.4.diff |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/noad/files/patches-0.7.x/noad-0.7.0_gcc-4.4.diff?rev=1.1&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/noad/files/patches-0.7.x/noad-0.7.0_gcc-4.4.diff?rev=1.1&content-type=text/plain |
12 |
|
13 |
Index: noad-0.7.0_gcc-4.4.diff |
14 |
=================================================================== |
15 |
#! /bin/sh /usr/share/dpatch/dpatch-run |
16 |
## 10_gcc4.4.dpatch by <Gerald Dachs <gda@××××××××.de>> |
17 |
## |
18 |
## All lines beginning with `## DP:' are a description of the patch. |
19 |
## DP: No description. |
20 |
|
21 |
@DPATCH@ |
22 |
diff -urNad noad-0.7.0~/svdrpc.cpp noad-0.7.0/svdrpc.cpp |
23 |
--- noad-0.7.0~/svdrpc.cpp 2009-12-22 23:20:50.000000000 +0100 |
24 |
+++ noad-0.7.0/svdrpc.cpp 2009-12-22 23:23:11.000000000 +0100 |
25 |
@@ -256,7 +256,7 @@ |
26 |
{ |
27 |
char *baseName = NULL; |
28 |
char *cp = NULL; |
29 |
- char *vend = strchr(filename,'/'); |
30 |
+ const char *vend = strchr(filename,'/'); |
31 |
if( vend ) |
32 |
vend = strchr(vend+1,'/'); |
33 |
if( vend ) |
34 |
@@ -265,9 +265,9 @@ |
35 |
asprintf(&baseName,"mesg %s %s",msg, filename); |
36 |
if( baseName[strlen(baseName)-1] == '/' ) |
37 |
baseName[strlen(baseName)-1] = '\0'; |
38 |
- vend = strrchr(baseName, '/'); |
39 |
- if( vend ) |
40 |
- *vend = '\0'; |
41 |
+ char *vend1 = strrchr(baseName, '/'); |
42 |
+ if( vend1 ) |
43 |
+ *vend1 = '\0'; |
44 |
asprintf(&cp,"%s\r\n",baseName); |
45 |
|
46 |
VDRMessage(cp); |
47 |
diff -urNad noad-0.7.0~/vdr_cl.cpp noad-0.7.0/vdr_cl.cpp |
48 |
--- noad-0.7.0~/vdr_cl.cpp 2009-12-22 23:20:50.000000000 +0100 |
49 |
+++ noad-0.7.0/vdr_cl.cpp 2009-12-22 23:20:50.000000000 +0100 |
50 |
@@ -1200,7 +1200,7 @@ |
51 |
sortBuffer = NULL; |
52 |
fileName = strdup(FileName); |
53 |
FileName += strlen(VideoDirectory) + 1; |
54 |
- char *p = strrchr(FileName, '/'); |
55 |
+ const char *p = strrchr(FileName, '/'); |
56 |
|
57 |
name = NULL; |
58 |
summary = NULL; |
59 |
|
60 |
diff -Naur noad-0.7.0.orig/showindex.cpp noad-0.7.0/showindex.cpp |
61 |
--- noad-0.7.0.orig/showindex.cpp 2010-01-05 19:22:48.000000000 +0100 |
62 |
+++ noad-0.7.0/showindex.cpp 2010-01-05 19:23:31.000000000 +0100 |
63 |
@@ -46,8 +46,8 @@ |
64 |
uchar PictureType; // current picture-type |
65 |
int Length; // frame-lenght of current frame |
66 |
char pictypes[]= { 'U','I','P','B' }; |
67 |
- char *indents[]= { "",""," "," " }; |
68 |
- char *indents2[]= { ""," "," ","" }; |
69 |
+ const char *indents[]= { "",""," "," " }; |
70 |
+ const char *indents2[]= { ""," "," ","" }; |
71 |
int lastFile=0; |
72 |
int lastOffset = 0; |
73 |
unsigned char readBuffer[BYTES_TO_READ+1]; |