summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-01-28 03:57:09 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-01-28 03:57:09 +0000
commit07d0ce8eb32442b1e7cc3be54fbfc43fc06663d0 (patch)
tree928857ddc13f2de79f20516312158f598fa61e27
parent460175ef10697eecc758b85975268060b55b1bb5 (diff)
downloadrtems-07d0ce8eb32442b1e7cc3be54fbfc43fc06663d0.tar.bz2
2007-01-28 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/gethostbyht.c: Remove warning on unused vars. Remove isblank (supposed to be provided by libc).
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/libnetworking/libc/gethostbyht.c8
2 files changed, 7 insertions, 6 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index db7a92ca51..eb912372c0 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-28 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libnetworking/libc/gethostbyht.c: Remove warning on unused vars.
+ Remove isblank (supposed to be provided by libc).
+
2007-01-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/show_bdbuf.c: Convert from DOS to UNIX.
diff --git a/cpukit/libnetworking/libc/gethostbyht.c b/cpukit/libnetworking/libc/gethostbyht.c
index df785cc351..8fc850c603 100644
--- a/cpukit/libnetworking/libc/gethostbyht.c
+++ b/cpukit/libnetworking/libc/gethostbyht.c
@@ -79,9 +79,11 @@ static u_char host_addr[16]; /* IPv4 or IPv6 */
static char *h_addr_ptrs[2];
static int stayopen = 0;
+#ifdef _THREAD_SAFE
static char* hostmap = NULL;
static unsigned int hostlen = 0;
static char *cur;
+#endif
void
_sethosthtent(f)
@@ -208,12 +210,6 @@ _gethostbyhtaddr(addr, len, af)
#ifdef _THREAD_SAFE
-
-static int isblank ( int ch )
-{
- return ch == ' ' || ch == '\t';
-}
-
struct hostent* gethostent_r(char* buf, int len)
{
char *dest;