mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 22:05:23 +00:00
Fix up a couple of type errors
This commit is contained in:
@@ -173,15 +173,15 @@ int main (int argc, char **argv, char **envp)
|
|||||||
printf ("?\n");
|
printf ("?\n");
|
||||||
} else {
|
} else {
|
||||||
printf ("%.*s\n",
|
printf ("%.*s\n",
|
||||||
r -> rtype -> u . buffer . len,
|
(int)(r -> rtype -> u . buffer . len),
|
||||||
r -> rtype -> u . buffer . value);
|
r -> rtype -> u . buffer . value);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < g -> nvalues; i++) {
|
for (i = 0; i < g -> nvalues; i++) {
|
||||||
omapi_value_t *v = g -> values [i];
|
omapi_value_t *v = g -> values [i];
|
||||||
|
|
||||||
printf ("%.*s = ",
|
printf ("%.*s = ", (int)v -> name -> len,
|
||||||
v -> name -> len, v -> name -> value);
|
v -> name -> value);
|
||||||
|
|
||||||
switch (v -> value -> type) {
|
switch (v -> value -> type) {
|
||||||
case omapi_datatype_int:
|
case omapi_datatype_int:
|
||||||
@@ -191,7 +191,7 @@ int main (int argc, char **argv, char **envp)
|
|||||||
|
|
||||||
case omapi_datatype_string:
|
case omapi_datatype_string:
|
||||||
printf ("\"%.*s\"\n",
|
printf ("\"%.*s\"\n",
|
||||||
v -> value -> u.buffer.len,
|
(int)v -> value -> u.buffer.len,
|
||||||
v -> value -> u.buffer.value);
|
v -> value -> u.buffer.value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#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")) {
|
} else if (!omapi_ds_strcmp (name, "partner-state")) {
|
||||||
return ISC_R_SUCCESS;
|
return ISC_R_SUCCESS;
|
||||||
} else if (!omapi_ds_strcmp (name, "local-state")) {
|
} else if (!omapi_ds_strcmp (name, "local-state")) {
|
||||||
long l;
|
unsigned long l;
|
||||||
status = omapi_get_int_value (&l, value);
|
status = omapi_get_int_value (&l, value);
|
||||||
if (status != ISC_R_SUCCESS)
|
if (status != ISC_R_SUCCESS)
|
||||||
return status;
|
return status;
|
||||||
|
Reference in New Issue
Block a user