use %zu for size_t

This commit is contained in:
plunky 2016-02-24 21:43:39 +00:00
parent 087fb00407
commit ee0ec0dd6d
2 changed files with 38 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.3 2016/02/17 10:58:19 plunky Exp $
$NetBSD: distinfo,v 1.4 2016/02/24 21:43:39 plunky Exp $
SHA1 (bcmfw-2.0.tar.gz) = 94f6881e0772333599b6cae0b7938d99d2959187
RMD160 (bcmfw-2.0.tar.gz) = 14c6d1e5ba4266377a34655c082f3a9b3432469f
@ -8,3 +8,4 @@ SHA1 (bluez-firmware-1.2.tar.gz) = 43f98fdd518a2b4371d25015aaafb1d6f3cbde2c
RMD160 (bluez-firmware-1.2.tar.gz) = 1651dd837c2263cf5d6d5d4da30664cf408b0ba9
SHA512 (bluez-firmware-1.2.tar.gz) = 15db2f9d38a496882e4cc3754af1e58aa99e1b849f2066c541d76c66a8ffdc5532799fe1fd473cfc158bf5ea86a46687716cbcf83c6dcac0ce66d97d679648dd
Size (bluez-firmware-1.2.tar.gz) = 370623 bytes
SHA1 (patch-bcmfw-install.c) = 0712b682fdafe8e4cec833534d55424170a2a8fe

View file

@ -0,0 +1,36 @@
$NetBSD: patch-bcmfw-install.c,v 1.1 2016/02/24 21:43:39 plunky Exp $
use %zu for size_t
--- bcmfw-install.c.orig 2016-02-24 21:39:09.000000000 +0000
+++ bcmfw-install.c
@@ -194,9 +194,9 @@ start:
}
}
if (quote)
- warnx("unterminated quote on line #%d", lineno);
+ warnx("unterminated quote on line #%zu", lineno);
if (stringkey)
- warnx("unterminated string key on line #%d", lineno);
+ warnx("unterminated string key on line #%zu", lineno);
if (space)
len = space; /* drop trailing spaces */
if (ch == EOF) {
@@ -216,7 +216,7 @@ start:
if (buf[len - 1] == ']')
section = section_add(buf + 1, len - 2);
else {
- warnx("malformed section header on line #%d", lineno);
+ warnx("malformed section header on line #%zu", lineno);
section = NULL;
}
} else if (section != NULL) /* ignore lines with no section */
@@ -257,7 +257,7 @@ start:
buf[len++] = (uint8_t)ch;
}
- err(EXIT_FAILURE, "line #%d too long", lineno);
+ err(EXIT_FAILURE, "line #%zu too long", lineno);
}
static bool