summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-06-29 16:47:08 +0000
committerbde <bde@FreeBSD.org>1998-06-29 16:47:08 +0000
commit0b0c5d1c4e51492acceb52c065db2dfd454a6494 (patch)
tree42fb8dd898308391f49cb149cc9e73c37e16195f /libexec/bootpd
parent46d0d58de9c92492be53612122611c4f6abcc4df (diff)
downloadFreeBSD-src-0b0c5d1c4e51492acceb52c065db2dfd454a6494.zip
FreeBSD-src-0b0c5d1c4e51492acceb52c065db2dfd454a6494.tar.gz
Don't assume that time_t is long. Fixed printf format errors.
Diffstat (limited to 'libexec/bootpd')
-rw-r--r--libexec/bootpd/dumptab.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libexec/bootpd/dumptab.c b/libexec/bootpd/dumptab.c
index 3827fd9..4278ba1 100644
--- a/libexec/bootpd/dumptab.c
+++ b/libexec/bootpd/dumptab.c
@@ -1,7 +1,7 @@
/*
* dumptab.c - handles dumping the database
*
- * $Id$
+ * $Id: dumptab.c,v 1.4 1997/02/22 14:21:04 peter Exp $
*/
#include <sys/types.h>
@@ -61,7 +61,7 @@ dumptab(filename)
int n;
struct host *hp;
FILE *fp;
- long t;
+ time_t t;
/* Print symbols in alphabetical order for reader's convenience. */
static char legend[] = "#\n# Legend:\t(see bootptab.5)\n\
#\tfirst field -- hostname (not indented)\n\
@@ -152,7 +152,7 @@ dump_host(fp, hp)
if (hp->flags.bootsize_auto) {
fprintf(fp, "auto:");
} else {
- fprintf(fp, "%d:", hp->bootsize);
+ fprintf(fp, "%lu:", (u_long)hp->bootsize);
}
}
if (hp->flags.cookie_server) {
@@ -220,10 +220,10 @@ dump_host(fp, hp)
fprintf(fp, ":");
}
if (hp->flags.msg_size) {
- fprintf(fp, "\\\n\t:ms=%d:", hp->msg_size);
+ fprintf(fp, "\\\n\t:ms=%lu:", (u_long)hp->msg_size);
}
if (hp->flags.min_wait) {
- fprintf(fp, "\\\n\t:mw=%d:", hp->min_wait);
+ fprintf(fp, "\\\n\t:mw=%lu:", (u_long)hp->min_wait);
}
if (hp->flags.name_server) {
fprintf(fp, "\\\n\t:ns=");
OpenPOWER on IntegriCloud