diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-07-09 15:16:39 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-07-09 15:16:39 +0000 |
commit | 9f3488a8a873f16a09a273b7efdbd28168d05d26 (patch) | |
tree | 6d54f1f52d4863ad97ece6e0aec3b0e8f28abdbe | |
parent | 9ede30c5a9be0f1d6818583929755638bdf446f3 (diff) |
Print sizeof() value and size_t variable with %zu rather than %zd.
-rw-r--r-- | sbin/dhclient/dhclient.c | 4 | ||||
-rw-r--r-- | sbin/dhclient/kroute.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 48ed8e59c82..8ab2ba4269b 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.311 2014/05/23 17:36:59 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.312 2014/07/09 15:16:38 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -2350,7 +2350,7 @@ priv_write_file(struct imsg_write_file *imsg) note("Couldn't write contents to '%s': %s", imsg->path, strerror(errno)); else if (n < imsg->len) - note("Short contents write to '%s' (%zd vs %zd)", imsg->path, + note("Short contents write to '%s' (%zd vs %zu)", imsg->path, n, imsg->len); if (fchmod(fd, imsg->mode) == -1) diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c index 9e9006c9c04..4c48bc5b51d 100644 --- a/sbin/dhclient/kroute.c +++ b/sbin/dhclient/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.65 2014/05/05 18:02:49 krw Exp $ */ +/* $OpenBSD: kroute.c,v 1.66 2014/07/09 15:16:38 krw Exp $ */ /* * Copyright 2012 Kenneth R Westerback <krw@openbsd.org> @@ -611,7 +611,7 @@ create_route_label(struct sockaddr_rtlabel *label) } if (len >= sizeof(label->sr_label)) { - warning("creating route label: label too long (%d vs %zd)", len, + warning("creating route label: label too long (%d vs %zu)", len, sizeof(label->sr_label)); return (1); } |