]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix up a couple of type errors
authorTed Lemon <source@isc.org>
Thu, 1 Mar 2001 07:25:47 +0000 (07:25 +0000)
committerTed Lemon <source@isc.org>
Thu, 1 Mar 2001 07:25:47 +0000 (07:25 +0000)
dhcpctl/omshell.c
server/failover.c

index 1db047e72a972a8211fa30047df4803d69044543..4fb47d4f995ea8a1c80709d904994cbe96fb44d1 100644 (file)
@@ -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;
 
index e42bf88a38b77aefef24514779fead46c130b637..d931bd7717ef218af1289b523597c78e3d4e4523 100644 (file)
@@ -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;