Backported patch by Robert Scheck <robert@fedoraproject.org> for partclone >= 0.3.12 which removes
C99 syntax in for loop.

Upstream: https://github.com/Thomas-Tsai/partclone/commit/2cab14ef0c05fde5ef2daaf917ab31d5350e5635

--- partclone-0.3.12/src/main.c					2018-10-28 14:46:38.000000000 +0100
+++ partclone-0.3.12/src/main.c.c99-for-loop			2019-07-23 01:02:45.280856010 +0200
@@ -766,7 +766,8 @@
 						    // finish a piece
 						    SHA1_Final(hash, &ctx);
 						    dprintf(tinfo, "sha1: ");
-						    for (int x = 0; x < SHA_DIGEST_LENGTH; x++) {
+						    int x = 0;
+						    for (x = 0; x < SHA_DIGEST_LENGTH; x++) {
 						        dprintf(tinfo, "%02x", hash[x]);
 						    }
 						    dprintf(tinfo, "\n");
@@ -818,7 +819,8 @@
 			if (sha_length) {
 				SHA1_Final(hash, &ctx);
 				dprintf(tinfo, "sha1: ");
-				for (int x = 0; x < SHA_DIGEST_LENGTH; x++) {
+				int x = 0;
+				for (x = 0; x < SHA_DIGEST_LENGTH; x++) {
 					dprintf(tinfo, "%02x", hash[x]);
 				}
 				dprintf(tinfo, "\n");
