diff options
author | kris <kris@FreeBSD.org> | 2002-04-01 03:34:32 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-04-01 03:34:32 +0000 |
commit | 6e6f71e38c40d8b37a4152eb8f52e932beb84cc0 (patch) | |
tree | f0030f488bfae0563012ca8a4fd61703da1f26b3 /print/bibcard/files | |
parent | 88fa35ca563edb5a9201e59b2c66c1ed7a882e5b (diff) | |
download | FreeBSD-ports-6e6f71e38c40d8b37a4152eb8f52e932beb84cc0.zip FreeBSD-ports-6e6f71e38c40d8b37a4152eb8f52e932beb84cc0.tar.gz |
Remove internal strcasestr implementation to fix build.
Diffstat (limited to 'print/bibcard/files')
-rw-r--r-- | print/bibcard/files/patch-02 | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/print/bibcard/files/patch-02 b/print/bibcard/files/patch-02 index c0d6a81..5cbd3f1 100644 --- a/print/bibcard/files/patch-02 +++ b/print/bibcard/files/patch-02 @@ -1,5 +1,5 @@ --- bt_ex.c.orig Thu May 14 09:10:37 1992 -+++ bt_ex.c Tue Apr 8 15:26:22 1997 ++++ bt_ex.c Sun Mar 31 19:35:56 2002 @@ -212,7 +212,8 @@ @@ -27,16 +27,38 @@ #define NULL 0 char * /* found string, or NULL if none */ -@@ -286,7 +290,7 @@ +@@ -286,29 +290,7 @@ return(NULL); return(scan); } - +- +-char * /*A case insensitive version */ +- strcasestr(s, wanted) +-CONST char *s; +-CONST char *wanted; +-{ +- register CONST char *scan; +- register SIZET len; +- register char firstc; +- extern int strcmp(); +- extern SIZET strlen(); +- +- firstc = ( isupper( *wanted) ? tolower( *wanted) : *wanted); +- len = strlen(wanted); +- for (scan = s; strncasecmp(scan, wanted, len) != 0; ) { +- +- if (*scan++ == '\0') +- return(NULL); +- } +- return(scan); +-} +- +#endif - char * /*A case insensitive version */ - strcasestr(s, wanted) -@@ -640,9 +644,11 @@ + void toLower(s1) + +@@ -640,9 +622,11 @@ /* limit for ATTR_LIST including a pad */ #define MAX_XVIEW_ATTRIBUTES (255 - 20) |