svn commit: r381932 - head/net/ladvd/files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Mar 22 15:44:54 UTC 2015
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 at 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);
+
More information about the svn-ports-all
mailing list