Description: fix some GCC warnings.
Author: Joao Eriberto Mota Filho <eriberto@debian.org>
Last-Update: 2015-03-30
Index: myrescue-0.9.4/src/myrescue.c
===================================================================
--- myrescue-0.9.4.orig/src/myrescue.c
+++ myrescue-0.9.4/src/myrescue.c
@@ -97,7 +97,8 @@ int copy_block( int src_fd, int dst_fd,
 			perror("src read failed");
 			return errno;
 		} else {
-			fprintf(stderr,"short read: %d of %d\n",
+// [FIX] myrescue.c:101:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘ssize_t’ [-Wformat=]
+			fprintf(stderr,"short read: %zu of %d\n",
 				src_count, block_size);
 			return -1;
 		}
@@ -109,7 +110,8 @@ int copy_block( int src_fd, int dst_fd,
 			perror("dst write failed");
 			return errno;
 		} else {
-			fprintf(stderr,"short write: %d of %d\n",
+// [FIX] myrescue.c:113:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘ssize_t’ [-Wformat=]
+			fprintf(stderr,"short write: %zu of %d\n",
 				dst_count, block_size);
 			return -1;
 		}
