]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Signed vs. unsigned char fixes
authorTed Lemon <source@isc.org>
Mon, 16 Mar 1998 06:02:14 +0000 (06:02 +0000)
committerTed Lemon <source@isc.org>
Mon, 16 Mar 1998 06:02:14 +0000 (06:02 +0000)
client/clparse.c

index 74f72e5568d5a81931768792c44a11e02c5275bc..e0c7214a93ad5ab224963ace4d480e1a69249569 100644 (file)
@@ -3,7 +3,7 @@
    Parser for dhclient config and lease files... */
 
 /*
- * Copyright (c) 1997 The Internet Software Consortium.
+ * Copyright (c) 1997, 1998 The Internet Software Consortium.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: clparse.c,v 1.13 1997/10/27 20:13:21 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: clparse.c,v 1.14 1998/03/16 06:02:14 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -771,8 +771,9 @@ struct option *parse_option_decl (cfile, options)
 
                /* Look up the option name hash table for the specified
                   vendor. */
-               universe = (struct universe *)hash_lookup (&universe_hash,
-                                                          vendor, 0);
+               universe = ((struct universe *)
+                           hash_lookup (&universe_hash,
+                                        (unsigned char *)vendor, 0));
                /* If it's not there, we can't parse the rest of the
                   declaration. */
                if (!universe) {
@@ -788,7 +789,8 @@ struct option *parse_option_decl (cfile, options)
        }
 
        /* Look up the actual option info... */
-       option = (struct option *)hash_lookup (universe -> hash, val, 0);
+       option = (struct option *)hash_lookup (universe -> hash,
+                                              (unsigned char *)val, 0);
 
        /* If we didn't get an option structure, it's an undefined option. */
        if (!option) {