delete useless patch
This commit is contained in:
parent
2e21144d16
commit
4c03b37d13
@ -1,27 +0,0 @@
|
||||
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");
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user