From: Ted Lemon Date: Thu, 17 Aug 2000 19:41:48 +0000 (+0000) Subject: Fix a compile warning. X-Git-Tag: V3-BETA-2-PATCH-1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a69fc68a1b77b3e2afbe04fa4798002d31654000;p=thirdparty%2Fdhcp.git Fix a compile warning. --- diff --git a/omapip/auth.c b/omapip/auth.c index f5ce57bcb..1de76c050 100644 --- a/omapip/auth.c +++ b/omapip/auth.c @@ -43,12 +43,12 @@ #ifndef lint static char ocopyright[] = -"$Id: auth.c,v 1.1 2000/08/03 21:00:11 neild Exp $ Copyright 1998-2000 The Internet Software Consortium."; +"$Id: auth.c,v 1.2 2000/08/17 19:41:24 mellon Exp $ Copyright 1998-2000 The Internet Software Consortium."; #endif #include -OMAPI_OBJECT_ALLOC (omapi_auth_key, omapi_auth_key_t, omapi_type_auth_key); +OMAPI_OBJECT_ALLOC (omapi_auth_key, omapi_auth_key_t, omapi_type_auth_key) static struct hash_table *auth_key_hash = (struct hash_table *)0; HASH_FUNCTIONS_DECL (omapi_auth_key, const char *, omapi_auth_key_t) @@ -160,6 +160,7 @@ isc_result_t omapi_auth_key_lookup (omapi_object_t **h, if (!omapi_auth_key_hash_lookup ((omapi_auth_key_t **)h, auth_key_hash, + (const char *) name -> value -> u.buffer.value, name -> value -> u.buffer.len, MDL)) { omapi_value_dereference (&name, MDL); diff --git a/omapip/buffer.c b/omapip/buffer.c index e4bdc19a9..cc7b514bc 100644 --- a/omapip/buffer.c +++ b/omapip/buffer.c @@ -252,6 +252,7 @@ isc_result_t omapi_connection_copyout (unsigned char *buf, (sig_flags, c -> in_key, &c -> in_context, + (unsigned char *) &buffer -> buf [first_byte], bytes_this_copy, (omapi_typed_data_t **)0);