svn commit: r415016 - head/mail/qconfirm/files
Baptiste Daroussin
bapt at FreeBSD.org
Wed May 11 19:34:34 UTC 2016
Author: bapt
Date: Wed May 11 19:34:33 2016
New Revision: 415016
URL: https://svnweb.freebsd.org/changeset/ports/415016
Log:
Prevent collision with getline(3)
Added:
head/mail/qconfirm/files/
head/mail/qconfirm/files/patch-src_getline.c (contents, props changed)
head/mail/qconfirm/files/patch-src_getline.h (contents, props changed)
head/mail/qconfirm/files/patch-src_qconfirm-notice.c (contents, props changed)
Added: head/mail/qconfirm/files/patch-src_getline.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/qconfirm/files/patch-src_getline.c Wed May 11 19:34:33 2016 (r415016)
@@ -0,0 +1,11 @@
+--- src/getline.c.orig 2004-12-12 16:57:17 UTC
++++ src/getline.c
+@@ -2,7 +2,7 @@
+ #include "stralloc.h"
+ #include "byte.h"
+
+-int getline(buffer *b, stralloc *line) {
++int get_line(buffer *b, stralloc *line) {
+ int r, i;
+ char *x;
+
Added: head/mail/qconfirm/files/patch-src_getline.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/qconfirm/files/patch-src_getline.h Wed May 11 19:34:33 2016 (r415016)
@@ -0,0 +1,5 @@
+--- src/getline.h.orig 2004-12-12 16:57:17 UTC
++++ src/getline.h
+@@ -1 +1 @@
+-extern int getline();
++extern int get_line();
Added: head/mail/qconfirm/files/patch-src_qconfirm-notice.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/qconfirm/files/patch-src_qconfirm-notice.c Wed May 11 19:34:33 2016 (r415016)
@@ -0,0 +1,11 @@
+--- src/qconfirm-notice.c.orig 2004-12-12 16:57:17 UTC
++++ src/qconfirm-notice.c
+@@ -386,7 +386,7 @@ int main(int argc, const char **argv) {
+ }
+
+ /* check for confirmation request message */
+- while ((i =getline(buffer_0, &sa)) > 0) {
++ while ((i =get_line(buffer_0, &sa)) > 0) {
+ if ((i == 1) && (sa.s[0] == '\n')) break; /* end of headers */
+ if (request && reply_to.s) break;
+ for (i =0; i < sa.len; ++i) {
More information about the svn-ports-head
mailing list