Author: rmilecki Date: 2015-04-14 18:16:11 +0200 (Tue, 14 Apr 2015) New Revision: 45436
Modified: trunk/package/utils/otrx/src/otrx.c Log: otrx: use %zd to fix printf format warnings Signed-off-by: Rafa?\197?\130 Mi?\197?\130ecki <[email protected]> Modified: trunk/package/utils/otrx/src/otrx.c =================================================================== --- trunk/package/utils/otrx/src/otrx.c 2015-04-14 14:21:52 UTC (rev 45435) +++ trunk/package/utils/otrx/src/otrx.c 2015-04-14 16:16:11 UTC (rev 45436) @@ -175,7 +175,7 @@ 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 @@ 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; } _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
