diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-04-14 16:16:11 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-04-14 16:16:11 +0000 |
commit | 0bd2710512e22039f4b7a20673dfbe90de82407c (patch) | |
tree | 851e1e8b9c356558cc61d2458a23b32a5d54048b /package/utils | |
parent | 6fad3d5524e06123c821a22d56ce7e53306ffa56 (diff) | |
download | upstream-0bd2710512e22039f4b7a20673dfbe90de82407c.tar.gz upstream-0bd2710512e22039f4b7a20673dfbe90de82407c.tar.bz2 upstream-0bd2710512e22039f4b7a20673dfbe90de82407c.zip |
otrx: use %zd to fix printf format warnings
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45436
Diffstat (limited to 'package/utils')
-rw-r--r-- | package/utils/otrx/src/otrx.c | 4 |
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; } |