Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 May 2016 21:13:22 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r415034 - head/net/wmlj/files
Message-ID:  <201605112113.u4BLDMW4018783@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605112113.u4BLDMW4018783>