From: Damien Neil Date: Fri, 11 Aug 2000 01:26:08 +0000 (+0000) Subject: Added some typecasts in printf() statements to make -Werror happy. X-Git-Tag: V3-BETA-2-PATCH-1~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5893fbc907c470dc4c8fb3068ee6432511f55938;p=thirdparty%2Fdhcp.git Added some typecasts in printf() statements to make -Werror happy. --- diff --git a/dhcpctl/test.c b/dhcpctl/test.c index 0b8901865..9ce243d25 100644 --- a/dhcpctl/test.c +++ b/dhcpctl/test.c @@ -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); diff --git a/server/db.c b/server/db.c index 6ae14e017..f10109f3d 100644 --- a/server/db.c +++ b/server/db.c @@ -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;