mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-03 15:56:00 +00:00
Signed vs. unsigned char fixes
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
Parser for dhclient config and lease files... */
|
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.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -771,8 +771,9 @@ struct option *parse_option_decl (cfile, options)
|
|||||||
|
|
||||||
/* Look up the option name hash table for the specified
|
/* Look up the option name hash table for the specified
|
||||||
vendor. */
|
vendor. */
|
||||||
universe = (struct universe *)hash_lookup (&universe_hash,
|
universe = ((struct universe *)
|
||||||
vendor, 0);
|
hash_lookup (&universe_hash,
|
||||||
|
(unsigned char *)vendor, 0));
|
||||||
/* If it's not there, we can't parse the rest of the
|
/* If it's not there, we can't parse the rest of the
|
||||||
declaration. */
|
declaration. */
|
||||||
if (!universe) {
|
if (!universe) {
|
||||||
@@ -788,7 +789,8 @@ struct option *parse_option_decl (cfile, options)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Look up the actual option info... */
|
/* 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 we didn't get an option structure, it's an undefined option. */
|
||||||
if (!option) {
|
if (!option) {
|
||||||
|
Reference in New Issue
Block a user