mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 13:57:50 +00:00
Fix up a couple of type errors
This commit is contained in:
parent
031d30b778
commit
7c6a9da029
@ -173,15 +173,15 @@ int main (int argc, char **argv, char **envp)
|
||||
printf ("?\n");
|
||||
} else {
|
||||
printf ("%.*s\n",
|
||||
r -> rtype -> u . buffer . len,
|
||||
(int)(r -> rtype -> u . buffer . len),
|
||||
r -> rtype -> u . buffer . value);
|
||||
}
|
||||
|
||||
for (i = 0; i < g -> nvalues; i++) {
|
||||
omapi_value_t *v = g -> values [i];
|
||||
|
||||
printf ("%.*s = ",
|
||||
v -> name -> len, v -> name -> value);
|
||||
printf ("%.*s = ", (int)v -> name -> len,
|
||||
v -> name -> value);
|
||||
|
||||
switch (v -> value -> type) {
|
||||
case omapi_datatype_int:
|
||||
@ -191,7 +191,7 @@ int main (int argc, char **argv, char **envp)
|
||||
|
||||
case omapi_datatype_string:
|
||||
printf ("\"%.*s\"\n",
|
||||
v -> value -> u.buffer.len,
|
||||
(int)v -> value -> u.buffer.len,
|
||||
v -> value -> u.buffer.value);
|
||||
break;
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"$Id: failover.c,v 1.37 2001/02/27 01:17:34 neild Exp $ Copyright (c) 1999-2001 The Internet Software Consortium. All rights reserved.\n";
|
||||
"$Id: failover.c,v 1.38 2001/03/01 07:25:45 mellon Exp $ Copyright (c) 1999-2001 The Internet Software Consortium. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "dhcpd.h"
|
||||
@ -2277,7 +2277,7 @@ isc_result_t dhcp_failover_state_set_value (omapi_object_t *h,
|
||||
} else if (!omapi_ds_strcmp (name, "partner-state")) {
|
||||
return ISC_R_SUCCESS;
|
||||
} else if (!omapi_ds_strcmp (name, "local-state")) {
|
||||
long l;
|
||||
unsigned long l;
|
||||
status = omapi_get_int_value (&l, value);
|
||||
if (status != ISC_R_SUCCESS)
|
||||
return status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user