summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authortnn <tnn>2009-10-31 20:08:05 +0000
committertnn <tnn>2009-10-31 20:08:05 +0000
commit5981d1fee9cca1999cefe666ee7f6d3bf5bad292 (patch)
tree05d158f04c698d71874681fd57e08ede05622bdf /mail
parent5264244c711dd0381914fc18d15aba2cccf19e09 (diff)
downloadpkgsrc-5981d1fee9cca1999cefe666ee7f6d3bf5bad292.tar.gz
getline -> get_line
Diffstat (limited to 'mail')
-rw-r--r--mail/qpopper/distinfo3
-rw-r--r--mail/qpopper/patches/patch-ah67
2 files changed, 69 insertions, 1 deletions
diff --git a/mail/qpopper/distinfo b/mail/qpopper/distinfo
index 21cda906e17..d883597ac2d 100644
--- a/mail/qpopper/distinfo
+++ b/mail/qpopper/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2006/05/05 02:51:35 taca Exp $
+$NetBSD: distinfo,v 1.16 2009/10/31 20:08:05 tnn Exp $
SHA1 (qpopper4.0.9.tar.gz) = 5629aa86d92fe10565021980882dffb733ce73d9
RMD160 (qpopper4.0.9.tar.gz) = b48a68cd9e282bfb3d78c6b53f3dee7c97bdf77d
@@ -13,6 +13,7 @@ SHA1 (patch-ad) = 24fe673113eff34f896c05c0f3d71ca235219525
SHA1 (patch-ae) = 1e06159f56c78e63a7960d4d9ca80535752099b2
SHA1 (patch-af) = a2100b026a0bab0be8c99c211ec0bd14d4405f32
SHA1 (patch-ag) = 4b187ab978ead4b751290fe483f6d6a6bf959089
+SHA1 (patch-ah) = 22db68feb33452e53c88ce291fdac0e4789d8820
SHA1 (patch-al) = 63fdc28b9c1d292d55464cda13c529ffb2a47b34
SHA1 (patch-am) = fba92571d9225f8c5cacb38a4621127a19151352
SHA1 (patch-an) = 43e7c20b9c3cfd978255748236efbcbaf2f929ce
diff --git a/mail/qpopper/patches/patch-ah b/mail/qpopper/patches/patch-ah
new file mode 100644
index 00000000000..184d270cbd8
--- /dev/null
+++ b/mail/qpopper/patches/patch-ah
@@ -0,0 +1,67 @@
+$NetBSD: patch-ah,v 1.9 2009/10/31 20:08:05 tnn Exp $
+
+--- popper/popper.c.orig 2006-03-09 23:32:38.000000000 +0100
++++ popper/popper.c
+@@ -150,7 +150,7 @@ char ** argv;
+ char message [ MAXLINELEN ];
+ pop_result rslt = POP_FAILURE;
+ char * tgetline();
+- char * getline();
++ char * get_line();
+
+ /*
+ * seed random with the current time to nearest second
+@@ -425,7 +425,7 @@ jmp_buf env;
+ */
+
+ char
+-*getline ( char *str, int size, POP *pPOP )
++*get_line ( char *str, int size, POP *pPOP )
+ {
+ char *p = NULL;
+ int nRead = 0;
+@@ -433,7 +433,7 @@ char
+ int nBufSz = sizeof ( pPOP->pcInBuf );
+
+
+- _DEBUG_LOG2 ( pPOP, "getline(%p,%d)", str, size );
++ _DEBUG_LOG2 ( pPOP, "get_line(%p,%d)", str, size );
+
+ /*
+ * See if there's a line in our input buffer
+@@ -472,7 +472,7 @@ char
+ pPOP->pcInStart - pPOP->pcInBuf );
+ pPOP->pcInStart = pPOP->pcInEnd = pPOP->pcInBuf;
+ }
+- _DEBUG_LOG3 ( pPOP, "getline() returning %d: '%.*s'",
++ _DEBUG_LOG3 ( pPOP, "get_line() returning %d: '%.*s'",
+ strlen(str), MIN(25, (int) strlen(str)), str );
+ return ( str );
+ } /* got a line */
+@@ -560,7 +560,7 @@ char
+ } /* found a '\n' */
+ } /* loop and discard until we see a '\n' */
+
+- _DEBUG_LOG2 ( pPOP, "getline() returning %d ('%c')",
++ _DEBUG_LOG2 ( pPOP, "get_line() returning %d ('%c')",
+ strlen(str), *str );
+ return ( str );
+ } /* nRoom == 0 */
+@@ -583,7 +583,7 @@ char
+ break;
+ } /* main loop */
+
+- _DEBUG_LOG0 ( pPOP, "getline() returning NULL" );
++ _DEBUG_LOG0 ( pPOP, "get_line() returning NULL" );
+ return ( NULL );
+ }
+
+@@ -614,7 +614,7 @@ tgetline ( char *str, int size, POP *p,
+ VERSION, timeout, p->user, p->client, p->ipaddr );
+ }
+ else
+- str = getline ( str, size, p );
++ str = get_line ( str, size, p );
+
+ alarm ( 0 );
+ signal ( SIGALRM, SIG_DFL );