From: Ted Lemon Date: Thu, 1 Mar 2001 07:25:47 +0000 (+0000) Subject: Fix up a couple of type errors X-Git-Tag: V3-BETA-2-PATCH-19~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c6a9da029fadb0bf0411d902a14bea65dfeea1e;p=thirdparty%2Fdhcp.git Fix up a couple of type errors --- diff --git a/dhcpctl/omshell.c b/dhcpctl/omshell.c index 1db047e72..4fb47d4f9 100644 --- a/dhcpctl/omshell.c +++ b/dhcpctl/omshell.c @@ -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; diff --git a/server/failover.c b/server/failover.c index e42bf88a3..d931bd771 100644 --- a/server/failover.c +++ b/server/failover.c @@ -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;