diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-06-12 07:06:16 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-06-12 07:06:16 +0000 |
commit | a81de3f92683e42658a7a782535af81eb1cb4585 (patch) | |
tree | 733ec7bf0a7e266ad5c451b8a81ea00f4896f193 /cpukit/shttpd/string.c | |
parent | 2007-06-12 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-a81de3f92683e42658a7a782535af81eb1cb4585.tar.bz2 |
Eliminate my_strdup, my_strndup.
Diffstat (limited to '')
-rw-r--r-- | cpukit/shttpd/string.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/shttpd/string.c b/cpukit/shttpd/string.c index f1b3645bac..8e9023cf31 100644 --- a/cpukit/shttpd/string.c +++ b/cpukit/shttpd/string.c @@ -32,6 +32,7 @@ my_strncasecmp(const char *str1, const char *str2, size_t len) return (ret); } +#ifndef HAVE_STRNDUP char * my_strndup(const char *ptr, size_t len) { @@ -43,12 +44,15 @@ my_strndup(const char *ptr, size_t len) return (p); } +#endif +#ifndef HAVE_STRDUP char * my_strdup(const char *str) { return (my_strndup(str, strlen(str))); } +#endif /* * Sane snprintf(). Acts like snprintf(), but never return -1 or the |