diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:25:15 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:25:15 +0800 |
commit | 2a77777982f6ebdeb0e3139461591969b804827f (patch) | |
tree | b67ff2c620a7d9807ec773482da9b0aab7ddb4ef /multimedia/vdr-plugin-vdrmanager | |
parent | fca963de46460ef8dcae3f26978bb07a6e1fa0f3 (diff) | |
download | freebsd-ports-gnome-2a77777982f6ebdeb0e3139461591969b804827f.tar.gz freebsd-ports-gnome-2a77777982f6ebdeb0e3139461591969b804827f.tar.zst freebsd-ports-gnome-2a77777982f6ebdeb0e3139461591969b804827f.zip |
multimedia/vdr-plugin-vdrmanager: unbreak with clang 4.0
sock.cpp:23:13: error: ordered comparison between pointer and zero ('int (*)(int, int, int)' and 'int')
if (socket >= 0) {
~~~~~~ ^ ~
PR: 216217
Reported by: antoine (via exp-run)
Obtained from: upstream
Diffstat (limited to 'multimedia/vdr-plugin-vdrmanager')
-rw-r--r-- | multimedia/vdr-plugin-vdrmanager/Makefile | 2 | ||||
-rw-r--r-- | multimedia/vdr-plugin-vdrmanager/files/patch-sock.cpp | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/multimedia/vdr-plugin-vdrmanager/Makefile b/multimedia/vdr-plugin-vdrmanager/Makefile index 0a406f215360..bfb6b5023e60 100644 --- a/multimedia/vdr-plugin-vdrmanager/Makefile +++ b/multimedia/vdr-plugin-vdrmanager/Makefile @@ -3,7 +3,7 @@ PORTNAME= vdr-plugin-vdrmanager PORTVERSION= 0.6 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= multimedia MASTER_SITES= http://projects.vdr-developer.org/attachments/download/828/ DISTNAME= ${PORTNAME:S/-plugin//}-${PORTVERSION} diff --git a/multimedia/vdr-plugin-vdrmanager/files/patch-sock.cpp b/multimedia/vdr-plugin-vdrmanager/files/patch-sock.cpp new file mode 100644 index 000000000000..81fb413f1502 --- /dev/null +++ b/multimedia/vdr-plugin-vdrmanager/files/patch-sock.cpp @@ -0,0 +1,17 @@ +From 333d83324710bbdef6f6feea38a9dadc3c01b959 Mon Sep 17 00:00:00 2001 +From: bju <bju@maxi.fritz.box> +Date: Tue, 24 Jan 2012 23:06:34 +0100 +Subject: Close() has used socket (method pointer) and not sock (variable) to + check if close() should be called. + +--- a/sock.cpp.orig 2011-12-28 15:11:48 UTC ++++ b/sock.cpp +@@ -20,7 +20,7 @@ cVdrmanagerSocket::~cVdrmanagerSocket() + } + + void cVdrmanagerSocket::Close() { +- if (socket >= 0) { ++ if (sock >= 0) { + close(sock); + sock = -1; + } |