multimedia/vdr: unbreak with clang 4.0

recording.c:2090:17: error: ordered comparison between pointer and zero ('cUnbufferedFile *' and 'int')
     if (Open() >= 0) {
         ~~~~~~ ^  ~

PR:		216058
Reported by:	antoine (via exp-run)
This commit is contained in:
Jan Beich 2017-02-01 05:24:48 +00:00
parent 48ab750c12
commit 9a4668667e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432967
2 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= vdr
PORTVERSION= 1.7.29
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= multimedia
MASTER_SITES= ftp://ftp.tvdr.de/vdr/Developer/
DIST_SUBDIR= vdr

View File

@ -0,0 +1,11 @@
--- recording.c.orig 2012-06-09 13:57:30 UTC
+++ recording.c
@@ -2075,7 +2075,7 @@ cUnbufferedFile *cFileName::SetOffset(in
}
// found a non existing file suffix
}
- if (Open() >= 0) {
+ if (Open()) {
if (!record && Offset >= 0 && file && file->Seek(Offset, SEEK_SET) != Offset) {
LOG_ERROR_STR(fileName);
return NULL;