summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-11 21:41:52 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-11 21:41:52 +0000
commit57ed48f8b6776d3fd21744274f64cee9332885f9 (patch)
treea0ddb06bda5f25e698623ecf0b4758ce1c36e850 /usr.bin
parentcac32e144bda558a20264b517c4e3b1be03b176a (diff)
Use %zu to print size_t's rather than casting to int.
ok millert@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sort/coll.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sort/coll.c b/usr.bin/sort/coll.c
index e9a020a64af..78272d6acbb 100644
--- a/usr.bin/sort/coll.c
+++ b/usr.bin/sort/coll.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: coll.c,v 1.10 2015/04/05 13:59:26 millert Exp $ */
+/* $OpenBSD: coll.c,v 1.11 2015/12/11 21:41:51 mmcc Exp $ */
/*-
* Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
@@ -556,7 +556,7 @@ list_coll_offset(struct sort_list_item **ss1, struct sort_list_item **ss2,
if (debug_sort) {
if (offset)
- printf("; offset=%d", (int) offset);
+ printf("; offset=%zu", offset);
bwsprintf(stdout, ((*ss1)->str), "; s1=<", ">");
bwsprintf(stdout, ((*ss2)->str), ", s2=<", ">");
printf("; cmp1=%d\n", ret);
@@ -758,7 +758,7 @@ wstrcoll(struct key_value *kv1, struct key_value *kv2, size_t offset)
if (debug_sort) {
if (offset)
- printf("; offset=%d\n", (int) offset);
+ printf("; offset=%zu\n", offset);
bwsprintf(stdout, kv1->k, "; k1=<", ">");
printf("(%zu)", BWSLEN(kv1->k));
bwsprintf(stdout, kv2->k, ", k2=<", ">");