mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-21 09:08:26 +08:00
2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* shttpd/defs.h: Eliminate my_strncasecmp. * shttpd/string.c: Eliminate my_strncasecmp.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* shttpd/defs.h: Eliminate my_strncasecmp.
|
||||
* shttpd/string.c: Eliminate my_strncasecmp.
|
||||
|
||||
2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* wrapup/Makefile.am: Pickup ../libmd/libmd.a.
|
||||
|
||||
@@ -381,8 +381,18 @@ extern void my_strlcpy(register char *, register const char *, size_t);
|
||||
#define my_strlcpy(d,s,l) strlcpy(d,s,l)
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRNCASECMP
|
||||
extern int my_strncasecmp(register const char *,
|
||||
register const char *, size_t);
|
||||
#else
|
||||
#ifdef __rtems__
|
||||
/* strncasecmp should be in strings.h, but newlib has it in <string.h> */
|
||||
#include <string.h>
|
||||
#else
|
||||
#include <strings.h>
|
||||
#endif
|
||||
#define my_strncasecmp(s1,s2,l) strncasecmp(s1,s2,l)
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRNDUP
|
||||
extern char *my_strndup(const char *ptr, size_t len);
|
||||
|
||||
@@ -20,6 +20,7 @@ my_strlcpy(register char *dst, register const char *src, size_t n)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRNCASECMP
|
||||
int
|
||||
my_strncasecmp(const char *str1, const char *str2, size_t len)
|
||||
{
|
||||
@@ -33,6 +34,7 @@ my_strncasecmp(const char *str1, const char *str2, size_t len)
|
||||
|
||||
return (ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRNDUP
|
||||
char *
|
||||
|
||||
Reference in New Issue
Block a user