Date: Sun, 22 Mar 2015 15:44:54 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r381932 - head/net/ladvd/files Message-ID: <201503221544.t2MFisAr062425@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Sun Mar 22 15:44:53 2015 New Revision: 381932 URL: https://svnweb.freebsd.org/changeset/ports/381932 QAT: https://qat.redports.org/buildarchive/r381932/ Log: - Fix build with Clang 3.6.0 PR: 198437 Submitted by: dim Approved by: <sten@blinkenlights.nl> (maintainer) Added: head/net/ladvd/files/patch-src__util.c (contents, props changed) Added: head/net/ladvd/files/patch-src__util.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ladvd/files/patch-src__util.c Sun Mar 22 15:44:53 2015 (r381932) @@ -0,0 +1,22 @@ +--- src/util.c.orig 2011-12-20 14:11:03.000000000 +0100 ++++ src/util.c 2015-03-08 22:30:38.673935000 +0100 +@@ -213,9 +213,6 @@ + FILE *file; + int ret = 0; + +- if (path == NULL || line == NULL) +- return(0); +- + if ((file = fopen(path, "r")) == NULL) + return(0); + +@@ -232,9 +229,6 @@ + int write_line(const char *path, char *line, uint16_t len) { + int fd, ret; + +- if (path == NULL || line == NULL) +- return(0); +- + if ((fd = open(path, O_WRONLY|O_TRUNC)) == -1) + return(0); +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503221544.t2MFisAr062425>