diff --git a/partclone-0.3.12-c99-for-loop.patch b/partclone-0.3.12-c99-for-loop.patch deleted file mode 100644 index b723983..0000000 --- a/partclone-0.3.12-c99-for-loop.patch +++ /dev/null @@ -1,27 +0,0 @@ -Backported patch by Robert Scheck 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"); diff --git a/partclone.spec b/partclone.spec index b206189..b23c180 100644 --- a/partclone.spec +++ b/partclone.spec @@ -17,7 +17,6 @@ Release: 1 License: GPL+ and GPLv2 and GPLv2+ and GPLv3+ and LGPLv2 and LGPLv2+ URL: http://partclone.org/ Source0: https://github.com/Thomas-Tsai/partclone/archive/%{version}/%{name}-%{version}.tar.gz -Patch0: partclone-0.3.12-c99-for-loop.patch BuildRequires: gcc BuildRequires: libuuid-devel BuildRequires: fuse-devel @@ -42,7 +41,6 @@ libraries, e.g. e2fslibs is used to read and write the ext2 partition. %prep %setup -q -%patch0 -p1 -b .c99-for-loop autoreconf -i -f %build