From owner-svn-ports-all@freebsd.org Wed Feb 1 05:25:17 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FE6DCCD0AF; Wed, 1 Feb 2017 05:25:17 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 00B06A79; Wed, 1 Feb 2017 05:25:16 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v115PGub086706; Wed, 1 Feb 2017 05:25:16 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v115PFBR086704; Wed, 1 Feb 2017 05:25:15 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702010525.v115PFBR086704@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 1 Feb 2017 05:25:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432969 - in head/multimedia/vdr-plugin-vdrmanager: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 05:25:17 -0000 Author: jbeich Date: Wed Feb 1 05:25:15 2017 New Revision: 432969 URL: https://svnweb.freebsd.org/changeset/ports/432969 Log: 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 Added: head/multimedia/vdr-plugin-vdrmanager/files/patch-sock.cpp (contents, props changed) Modified: head/multimedia/vdr-plugin-vdrmanager/Makefile (contents, props changed) Modified: head/multimedia/vdr-plugin-vdrmanager/Makefile ============================================================================== --- head/multimedia/vdr-plugin-vdrmanager/Makefile Wed Feb 1 05:25:02 2017 (r432968) +++ head/multimedia/vdr-plugin-vdrmanager/Makefile Wed Feb 1 05:25:15 2017 (r432969) @@ -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} Added: head/multimedia/vdr-plugin-vdrmanager/files/patch-sock.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/vdr-plugin-vdrmanager/files/patch-sock.cpp Wed Feb 1 05:25:15 2017 (r432969) @@ -0,0 +1,17 @@ +From 333d83324710bbdef6f6feea38a9dadc3c01b959 Mon Sep 17 00:00:00 2001 +From: bju +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; + }