pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/autorespond Just rename strcasestr to mystrcasest...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b4f9a3f9e35a
branches:  trunk
changeset: 508417:b4f9a3f9e35a
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Feb 19 00:00:22 2006 +0000

description:
Just rename strcasestr to mystrcasestr, to avoid
conflicts with builtin strcasestr on DF and NetBSD.

diffstat:

 mail/autorespond/distinfo         |   4 ++--
 mail/autorespond/patches/patch-aa |  37 +++++++++++++++++++++++--------------
 2 files changed, 25 insertions(+), 16 deletions(-)

diffs (61 lines):

diff -r 5c6ea042f69a -r b4f9a3f9e35a mail/autorespond/distinfo
--- a/mail/autorespond/distinfo Sat Feb 18 23:42:57 2006 +0000
+++ b/mail/autorespond/distinfo Sun Feb 19 00:00:22 2006 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2006/01/08 17:55:31 joerg Exp $
+$NetBSD: distinfo,v 1.5 2006/02/19 00:00:22 wiz Exp $
 
 SHA1 (autorespond-2.0.5.tar.gz) = 9bdd160e93e886932b7679e915d72dca90d8de6a
 RMD160 (autorespond-2.0.5.tar.gz) = c86f56d02ac1f609605a4349a59b4293eff2ca15
 Size (autorespond-2.0.5.tar.gz) = 9707 bytes
-SHA1 (patch-aa) = d426dbedcb0fa62dd81fc77eb6c908c55f8b3023
+SHA1 (patch-aa) = 66fe261b019a44f1a0521a54765a1636860810e6
diff -r 5c6ea042f69a -r b4f9a3f9e35a mail/autorespond/patches/patch-aa
--- a/mail/autorespond/patches/patch-aa Sat Feb 18 23:42:57 2006 +0000
+++ b/mail/autorespond/patches/patch-aa Sun Feb 19 00:00:22 2006 +0000
@@ -1,22 +1,31 @@
-$NetBSD: patch-aa,v 1.1 2006/01/08 17:55:31 joerg Exp $
+$NetBSD: patch-aa,v 1.2 2006/02/19 00:00:22 wiz Exp $
 
---- autorespond.c.orig 2006-01-08 17:51:50.000000000 +0000
+--- autorespond.c.orig 2003-09-18 20:17:57.000000000 +0000
 +++ autorespond.c
-@@ -372,7 +372,7 @@ void read_headers( FILE *fp )
- }
- 
- 
--
-+#if !defined(__DragonFly__)
+@@ -376,7 +376,7 @@ void read_headers( FILE *fp )
  /*********************************************************
  ** find string in string - ignore case **/
  
-@@ -398,7 +398,7 @@ char *strcasestr( char *_s1, char *_s2 )
-       else
-               return _s1 + (ptr - s1);
- }
--
-+#endif
+-char *strcasestr( char *_s1, char *_s2 )
++char *mystrcasestr( char *_s1, char *_s2 )
+ {
+       char *s1;
+       char *s2;
+@@ -419,7 +419,7 @@ char *inspect_headers( char * tag, char 
+                       if ( ss == (char *)NULL )
+                               return act_header->content;
  
+-                      if ( strcasestr( act_header->content, ss ) != (char *)NULL )
++                      if ( mystrcasestr( act_header->content, ss ) != (char *)NULL )
+                               return act_header->content;
  
+                       return (char *)NULL;
+@@ -440,7 +440,7 @@ char *get_content_boundary()
+       if ( (s = inspect_headers( "Content-Type", (char *)NULL )) == (char *)NULL) 
+               return (char *)NULL;
  
+-      if ( (r = strcasestr( s, "boundary=" )) == (char *)NULL)
++      if ( (r = mystrcasestr( s, "boundary=" )) == (char *)NULL)
+               return (char *)NULL;
+       
+       *(r+strlen(r)-2) = '\0'; /* delete quote at the end */



Home | Main Index | Thread Index | Old Index