diff options
author | Vjaceslavs Klimovs <vklimovs@gmail.com> | 2020-01-25 17:31:46 -0800 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2020-01-25 20:45:36 -0500 |
commit | 9def327b17275c5e330ab4db1e80b41c43ac9508 (patch) | |
tree | 61cf832fb8c68597a9fa1f23065ab155b3b65a17 /net-wireless/crda | |
parent | net-analyzer/netdata: .keep files have been removed (diff) | |
download | gentoo-9def327b17275c5e330ab4db1e80b41c43ac9508.tar.gz gentoo-9def327b17275c5e330ab4db1e80b41c43ac9508.tar.bz2 gentoo-9def327b17275c5e330ab4db1e80b41c43ac9508.zip |
net-wireless/crda: fix Hunk #4 succeeded at 117 with fuzz 2.
Closes: https://github.com/gentoo/gentoo/pull/14452
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'net-wireless/crda')
-rw-r--r-- | net-wireless/crda/files/crda-4.14-python-3.patch | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/net-wireless/crda/files/crda-4.14-python-3.patch b/net-wireless/crda/files/crda-4.14-python-3.patch index 97db1ac05294..df22a6a4bd44 100644 --- a/net-wireless/crda/files/crda-4.14-python-3.patch +++ b/net-wireless/crda/files/crda-4.14-python-3.patch @@ -1,5 +1,7 @@ ---- /utils/key2pub.py -+++ /utils/key2pub.py +diff --git a/utils/key2pub.py b/utils/key2pub.py +index 9bb04cd..632e6a6 100755 +--- a/utils/key2pub.py ++++ b/utils/key2pub.py @@ -3,20 +3,20 @@ import sys try: @@ -25,7 +27,7 @@ val = val[8:] vnew.reverse() output.write('static BN_ULONG %s[%d] = {\n' % (name, len(vnew))) -@@ -34,13 +34,13 @@ +@@ -34,13 +34,13 @@ def print_ssl_64(output, name, val): output.write('};\n\n') def print_ssl_32(output, name, val): @@ -42,7 +44,7 @@ val = val[4:] vnew.reverse() output.write('static BN_ULONG %s[%d] = {\n' % (name, len(vnew))) -@@ -80,21 +80,21 @@ +@@ -80,21 +80,21 @@ struct pubkey { static struct pubkey keys[] = { ''') @@ -67,16 +69,16 @@ idx += 1 if idx == 8: idx = 0 -@@ -117,7 +117,7 @@ +@@ -117,7 +117,7 @@ struct key_params { - static const struct key_params keys[] = { + static const struct key_params __attribute__ ((unused)) keys[] = { ''') - for n in xrange(n + 1): + for n in range(n + 1): output.write(' KEYS(e_%d, n_%d),\n' % (n, n)) output.write('};\n') -@@ -135,7 +135,7 @@ +@@ -135,7 +135,7 @@ except IndexError: mode = None if not mode in modes: @@ -85,7 +87,7 @@ sys.exit(2) output = open(outfile, 'w') -@@ -153,3 +153,5 @@ +@@ -153,3 +153,5 @@ for f in files: idx += 1 modes[mode][1](output, idx - 1) |