summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-26 16:28:48 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-26 16:28:48 +0000
commit1b9daa113dde2db5b2a3bb29cabf1168fa2297dc (patch)
treefa93c14de4b1eaad6758f628ab40f1d8d21d85d5
parent75e3848d490f4a8381b7d73e2f6444b22eeeed34 (diff)
A few more little cleanups
-rw-r--r--libc/inet/resolv.c2
-rw-r--r--libc/misc/glob/glob.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index 1f464f37f..cbf7b177b 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -539,7 +539,7 @@ int dns_lookup(const char *name, int type, int nscount, char **nsip,
struct resolv_question q;
int retries = 0;
unsigned char * packet = malloc(PACKETSZ);
- unsigned char * lookup = malloc(MAXDNAME);
+ char * lookup = malloc(MAXDNAME);
int variant = 0;
#ifdef __UCLIBC_HAS_IPV6__
int v6;
diff --git a/libc/misc/glob/glob.c b/libc/misc/glob/glob.c
index e275018d7..55860d9fb 100644
--- a/libc/misc/glob/glob.c
+++ b/libc/misc/glob/glob.c
@@ -275,8 +275,8 @@ collated_compare (a, b)
const __ptr_t a;
const __ptr_t b;
{
- const char *const s1 = *(const char *const * const) a;
- const char *const s2 = *(const char *const * const) b;
+ const char *const s1 = *(const char *const *) a;
+ const char *const s2 = *(const char *const *) b;
if (s1 == s2)
return 0;