svn commit: r415034 - head/net/wmlj/files

Baptiste Daroussin bapt at FreeBSD.org
Wed May 11 21:13:23 UTC 2016


Author: bapt
Date: Wed May 11 21:13:22 2016
New Revision: 415034
URL: https://svnweb.freebsd.org/changeset/ports/415034

Log:
  Prevent collision with getline(3)

Added:
  head/net/wmlj/files/
  head/net/wmlj/files/patch-src_network.c   (contents, props changed)

Added: head/net/wmlj/files/patch-src_network.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/wmlj/files/patch-src_network.c	Wed May 11 21:13:22 2016	(r415034)
@@ -0,0 +1,24 @@
+--- src/network.c.orig	2016-05-11 21:04:11 UTC
++++ src/network.c
+@@ -72,7 +72,7 @@ skipline(char *text) {
+ }
+ 
+ static char*
+-getline(char *text) {
++get_line(char *text) {
+   int len;
+   char *str;
+ 
+@@ -113,10 +113,10 @@ parse_response(char *buf) {
+   int read_keys = 0;
+ 
+   while (*buf) {
+-    key = getline(buf);
++    key = get_line(buf);
+     buf = skipline(buf);
+     if (*buf) {
+-      val = getline(buf);
++      val = get_line(buf);
+       buf = skipline(buf);
+ 
+       g_hash_table_insert(hash, g_strdup(key), g_strdup(val));


More information about the svn-ports-head mailing list