diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2002-04-01 03:34:32 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2002-04-01 03:34:32 +0000 |
commit | 35f00aea99d23f37b75d51fab314f71085de2b50 (patch) | |
tree | 016911d720520945618f196e19e01ce053cd0f16 /print/bibcard | |
parent | Remove internal implementation of strcasestr(). Build still broken on (diff) |
Remove internal strcasestr implementation to fix build.
Notes
Notes:
svn path=/head/; revision=57106
Diffstat (limited to 'print/bibcard')
-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 c0d6a8188cf0..5cbd3f19e43c 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) |