소스 검색

otrx: use %zd to fix printf format warnings

Signed-off-by: Rafał Miłecki <[email protected]>

SVN-Revision: 45436
Rafał Miłecki 10 년 전
부모
커밋
0bd2710512
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      package/utils/otrx/src/otrx.c

+ 2 - 2
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;
 	}