Browse Source

A few more little cleanups

Eric Andersen 23 years ago
parent
commit
1b9daa113d
2 changed files with 3 additions and 3 deletions
  1. 1 1
      libc/inet/resolv.c
  2. 2 2
      libc/misc/glob/glob.c

+ 1 - 1
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;

+ 2 - 2
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;