~vcs-imports/ipfire/ipfire-2.x

« back to all changes in this revision

Viewing changes to src/patches/vdr-epgsearch-2.4.0-gcc1.patch

  • Committer: Daniel Glanzmann
  • Date: 2008-09-26 17:05:28 UTC
  • mto: (1394.1.12)
  • mto: This revision was merged to the branch mainline in revision 1401.
  • Revision ID: git-v1:19ac4d1b6e234e1391b3d406381e3b74e92c40dd
added new useragent thunderbird

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- vdr-plugin-epgsearch/epgsearchext.c.bak     2021-05-18 09:16:41.627381361 +0000
2
 
+++ vdr-plugin-epgsearch/epgsearchext.c 2021-05-18 09:16:51.650963022 +0000
3
 
@@ -1424,7 +1424,7 @@
4
 
             int line = 0;
5
 
             char buffer[MAXPARSEBUFFER];
6
 
             result = true;
7
 
-            while (fgets(buffer, sizeof(buffer), f) > 0) {
8
 
+            while (fgets(buffer, sizeof(buffer), f)) {
9
 
                 line++;
10
 
                 char *p = strchr(buffer, '#');
11
 
                 if (p == buffer) *p = 0;
12
 
--- vdr-plugin-epgsearch/createcats.c.bak       2021-05-18 09:19:49.987519874 +0000
13
 
+++ vdr-plugin-epgsearch/createcats.c   2021-05-18 09:19:58.591160769 +0000
14
 
@@ -68,7 +68,7 @@
15
 
 
16
 
 char *cReadLine::Read(FILE *f)
17
 
 {
18
 
-    if (fgets(buffer, sizeof(buffer), f) > 0) {
19
 
+    if (fgets(buffer, sizeof(buffer), f)) {
20
 
         int l = strlen(buffer) - 1;
21
 
         if (l >= 0 && buffer[l] == '\n')
22
 
             buffer[l] = 0;