aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2015-03-22 23:44:53 +0800
committersunpoet <sunpoet@FreeBSD.org>2015-03-22 23:44:53 +0800
commit63325a9b648fe425349c278b6e07b55e3ba4efc8 (patch)
tree57c8535aac52024ed11beb0013e225e4e0556c00
parentc470dabc7e8d109aebbf16e384c3f45a07af52b3 (diff)
downloadfreebsd-ports-gnome-63325a9b648fe425349c278b6e07b55e3ba4efc8.tar.gz
freebsd-ports-gnome-63325a9b648fe425349c278b6e07b55e3ba4efc8.tar.zst
freebsd-ports-gnome-63325a9b648fe425349c278b6e07b55e3ba4efc8.zip
- Fix build with Clang 3.6.0
PR: 198437 Submitted by: dim Approved by: <sten@blinkenlights.nl> (maintainer)
-rw-r--r--net/ladvd/files/patch-src__util.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/ladvd/files/patch-src__util.c b/net/ladvd/files/patch-src__util.c
new file mode 100644
index 000000000000..6e85c78400e3
--- /dev/null
+++ b/net/ladvd/files/patch-src__util.c
@@ -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);
+