net-wireless/crda: fix Hunk #4 succeeded at 117 with fuzz 2.
authorVjaceslavs Klimovs <vklimovs@gmail.com>
Sun, 26 Jan 2020 01:31:46 +0000 (17:31 -0800)
committerCraig Andrews <candrews@gentoo.org>
Sun, 26 Jan 2020 01:45:36 +0000 (20:45 -0500)
Closes: https://github.com/gentoo/gentoo/pull/14452
Signed-off-by: Craig Andrews <candrews@gentoo.org>
net-wireless/crda/files/crda-4.14-python-3.patch

index 97db1ac05294fa05aa27238519bd00a2e8f97c49..df22a6a4bd4448569423a04e5052d702235f800e 100644 (file)
@@ -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[] = {
  ''')
          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)