From: Ted Lemon Date: Thu, 14 Oct 1999 17:47:54 +0000 (+0000) Subject: Correct printf argument type (Brian Murrell) X-Git-Tag: BCTEL_SPECIAL_19991124~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbc6bf4b978ae13bc0cbea1dd53ad341c73cf434;p=thirdparty%2Fdhcp.git Correct printf argument type (Brian Murrell) --- diff --git a/common/dlpi.c b/common/dlpi.c index 59da6962b..57db418d0 100644 --- a/common/dlpi.c +++ b/common/dlpi.c @@ -70,7 +70,7 @@ #ifndef lint static char copyright[] = -"$Id: dlpi.c,v 1.15 1999/10/07 06:47:50 mellon Exp $ Copyright (c) 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dlpi.c,v 1.16 1999/10/14 17:44:02 mellon Exp $ Copyright (c) 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -221,7 +221,7 @@ int if_register_dlpi (info) info -> hw_address.htype = HTYPE_FDDI; break; default: - log_fatal ("%s: unknown DLPI MAC type %d", + log_fatal ("%s: unknown DLPI MAC type %ld", info -> name, dlp -> info_ack.dl_mac_type); break; diff --git a/common/nsupdate.c b/common/nsupdate.c index ef48ff5a1..96258c41b 100644 --- a/common/nsupdate.c +++ b/common/nsupdate.c @@ -25,7 +25,7 @@ #ifndef lint static char copyright[] = -"$Id: nsupdate.c,v 1.11 1999/10/07 06:35:43 mellon Exp $ Copyright (c) 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: nsupdate.c,v 1.12 1999/10/14 17:47:54 mellon Exp $ Copyright (c) 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -257,7 +257,7 @@ int nsupdateA (hostname, ip_addr, ttl, opcode) break; } z = res_update (u); - log_info ("%s %s: %s %d IN A %s", opcode == ADD ? "add" : "delete", + log_info ("%s %s: %s %ld IN A %s", opcode == ADD ? "add" : "delete", z == 1 ? "succeeded" : "failed", NAME (hostname), ttl, NAME (u -> r_data)); #if 0 @@ -331,7 +331,7 @@ int nsupdatePTR (revname, hostname, ttl, opcode) break; } z = res_update(u); - log_info ("%s %s: %s %d IN PTR %s", opcode == ADD ? "add" : + log_info ("%s %s: %s %ld IN PTR %s", opcode == ADD ? "add" : "delete", z == 1 ? "succeeded" : "failed", NAME (revname), ttl, NAME (u -> r_data)); #if 0