]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Added some typecasts in printf() statements to make -Werror happy.
authorDamien Neil <source@isc.org>
Fri, 11 Aug 2000 01:26:08 +0000 (01:26 +0000)
committerDamien Neil <source@isc.org>
Fri, 11 Aug 2000 01:26:08 +0000 (01:26 +0000)
dhcpctl/test.c
server/db.c

index 0b8901865d377f93f63b07de660a3dfc94d41ef8..9ce243d258cb9d8e8a2ff98d26665e8514e111a7 100644 (file)
@@ -169,7 +169,9 @@ option domain-name-servers 10.0.0.1, 10.0.0.2;",
                exit (1);
        }
 
-       printf ("group name = %.*s\n", groupname -> len, groupname -> value);
+       printf ("group name = %.*s\n",
+               (int)groupname -> len,
+               groupname -> value);
 
        memset (&host_handle, 0, sizeof host_handle);
        status = dhcpctl_new_object (&host_handle, connection, "host");
@@ -327,7 +329,7 @@ option smtp-server 10.0.0.1;",
                exit (1);
        }
 
-       printf ("host name = %.*s\n", result -> len, result -> value);
+       printf ("host name = %.*s\n", (int)result -> len, result -> value);
 
 #if 0
        status = dhcpctl_object_remove (connection, host_handle);
index 6ae14e0170f7073ef63ab2106846a27697eaca5f..f10109f3df2e24f943df975ccab22e77df205e5d 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: db.c,v 1.55 2000/08/08 18:11:22 neild Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: db.c,v 1.56 2000/08/11 01:26:08 neild Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -623,7 +623,7 @@ int write_billing_class (class)
        if (i == class -> hash_string.len) {
                errno = 0;
                fprintf (db_file, " \"%.*s\";",
-                        class -> hash_string.len,
+                        (int)class -> hash_string.len,
                         class -> hash_string.data);
                if (errno)
                        ++errors;