aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/otrx
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-04-14 16:16:11 +0000
committerRafał Miłecki <zajec5@gmail.com>2015-04-14 16:16:11 +0000
commite470997e7c8a346db30b85491b64a697537d7e73 (patch)
tree4f08359581e95d072f390e383b5ad5464678198b /package/utils/otrx
parent3edb793f70736b52492ccfd4c65453a190b801d7 (diff)
downloadmaster-187ad058-e470997e7c8a346db30b85491b64a697537d7e73.tar.gz
master-187ad058-e470997e7c8a346db30b85491b64a697537d7e73.tar.bz2
master-187ad058-e470997e7c8a346db30b85491b64a697537d7e73.zip
otrx: use %zd to fix printf format warnings
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45436 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/otrx')
-rw-r--r--package/utils/otrx/src/otrx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/utils/otrx/src/otrx.c b/package/utils/otrx/src/otrx.c
index 7fe4ba6f69..e42aacaf0e 100644
--- a/package/utils/otrx/src/otrx.c
+++ b/package/utils/otrx/src/otrx.c
@@ -175,7 +175,7 @@ static int otrx_check() {
buf = malloc(length);
if (!buf) {
- fprintf(stderr, "Couldn't alloc %d B buffer\n", length);
+ fprintf(stderr, "Couldn't alloc %zd B buffer\n", length);
err = -ENOMEM;
goto err_close;
}
@@ -183,7 +183,7 @@ static int otrx_check() {
fseek(trx, trx_offset, SEEK_SET);
bytes = fread(buf, 1, length, trx);
if (bytes != length) {
- fprintf(stderr, "Couldn't read %d B of data from %s\n", length, trx_path);
+ fprintf(stderr, "Couldn't read %zd B of data from %s\n", length, trx_path);
err = -ENOMEM;
goto err_free_buf;
}