7b2292ce8b
createcats.c:67:42: error: ordered comparison between pointer and zero ('char *' and 'int') if (fgets(buffer, sizeof(buffer), f) > 0) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ epgsearchext.c:1506:50: error: ordered comparison between pointer and zero ('char *' and 'int') while (fgets(buffer, sizeof(buffer), f) > 0) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] PR: 216217 Reported by: antoine (via exp-run)
22 lines
747 B
Text
22 lines
747 B
Text
--- createcats.c.orig 2012-03-22 18:00:19 UTC
|
|
+++ createcats.c
|
|
@@ -64,7 +64,7 @@ class cReadLine {
|
|
|
|
char *cReadLine::Read(FILE *f)
|
|
{
|
|
- if (fgets(buffer, sizeof(buffer), f) > 0) {
|
|
+ if (fgets(buffer, sizeof(buffer), f)) {
|
|
int l = strlen(buffer) - 1;
|
|
if (l >= 0 && buffer[l] == '\n')
|
|
buffer[l] = 0;
|
|
--- epgsearchext.c.orig 2012-03-22 18:00:19 UTC
|
|
+++ epgsearchext.c
|
|
@@ -1497,7 +1503,7 @@ bool cSearchExts::Load(const char *FileN
|
|
int line = 0;
|
|
char buffer[MAXPARSEBUFFER];
|
|
result = true;
|
|
- while (fgets(buffer, sizeof(buffer), f) > 0) {
|
|
+ while (fgets(buffer, sizeof(buffer), f)) {
|
|
line++;
|
|
char *p = strchr(buffer, '#');
|
|
if (p == buffer) *p = 0;
|