From: Ted Lemon Date: Thu, 5 Sep 1996 23:57:33 +0000 (+0000) Subject: Fix printf warnings X-Git-Tag: BETA_5_8~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67bb0d2402fd22f7209b209c1ff70886c22a8877;p=thirdparty%2Fdhcp.git Fix printf warnings --- diff --git a/common/options.c b/common/options.c index 8558d8bf9..a9bf83745 100644 --- a/common/options.c +++ b/common/options.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: options.c,v 1.17 1996/08/27 09:52:46 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: options.c,v 1.18 1996/09/05 23:57:33 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #define DHCP_OPTION_DATA @@ -477,11 +477,12 @@ char *pretty_print_option (code, data, len) dp += 4; break; case 'l': - sprintf (op, "%ld", getLong (dp)); /* XXX */ + sprintf (op, "%ld", (long)getLong (dp)); dp += 4; break; case 'L': - sprintf (op, "%ld", getULong (dp)); /* XXX */ + sprintf (op, "%ld", + (unsigned long)getULong (dp)); dp += 4; break; case 's': diff --git a/options.c b/options.c index 8558d8bf9..a9bf83745 100644 --- a/options.c +++ b/options.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: options.c,v 1.17 1996/08/27 09:52:46 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: options.c,v 1.18 1996/09/05 23:57:33 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #define DHCP_OPTION_DATA @@ -477,11 +477,12 @@ char *pretty_print_option (code, data, len) dp += 4; break; case 'l': - sprintf (op, "%ld", getLong (dp)); /* XXX */ + sprintf (op, "%ld", (long)getLong (dp)); dp += 4; break; case 'L': - sprintf (op, "%ld", getULong (dp)); /* XXX */ + sprintf (op, "%ld", + (unsigned long)getULong (dp)); dp += 4; break; case 's':