]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix some more printf arguments.
authorTed Lemon <source@isc.org>
Tue, 19 Oct 1999 15:26:50 +0000 (15:26 +0000)
committerTed Lemon <source@isc.org>
Tue, 19 Oct 1999 15:26:50 +0000 (15:26 +0000)
common/parse.c

index 3d35b30c45d3a78d3e531036ad75d25944202745..3c28153dedf0b125fa90e78c777f830dd8be67ee 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: parse.c,v 1.46 1999/10/14 17:58:42 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: parse.c,v 1.47 1999/10/19 15:26:50 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -488,17 +488,20 @@ void convert_num (cfile, buf, str, base, size)
                      case 8:
                        parse_warn (cfile,
                                    "%s%lo exceeds max (%d) for precision.",
-                                   negative ? "-" : "", val, max);
+                                   negative ? "-" : "",
+                                   (unsigned long)val, max);
                        break;
                      case 16:
                        parse_warn (cfile,
                                    "%s%lx exceeds max (%d) for precision.",
-                                   negative ? "-" : "", val, max);
+                                   negative ? "-" : "",
+                                   (unsigned long)val, max);
                        break;
                      default:
                        parse_warn (cfile,
                                    "%s%lu exceeds max (%d) for precision.",
-                                   negative ? "-" : "", val, max);
+                                   negative ? "-" : "",
+                                   (unsigned long)val, max);
                        break;
                }
        }