Skip to content
Snippets Groups Projects
Commit 15d26fba authored by Anna Wilcox's avatar Anna Wilcox :fox:
Browse files

net-wireless/crda: small patch fix.

parent fc42e192
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ diff --git a/utils/key2pub.py b/utils/key2pub.py
index 3e84cd2..c76cbbb 100755
--- a/utils/key2pub.py
+++ b/utils/key2pub.py
@@ -1,126 +1,128 @@
@@ -1,127 +1,128 @@
#!/usr/bin/env python
+import io
......@@ -145,6 +145,7 @@ index 3e84cd2..c76cbbb 100755
+
import struct
- output.write('#include <stdint.h>\n')
- output.write('#include <openssl/bn.h>\n')
if len(struct.pack('@L', 0)) == 8:
return print_ssl_64(output, name, val)
else:
......@@ -170,9 +171,10 @@ index 3e84cd2..c76cbbb 100755
static struct pubkey keys[] = {
''')
for n in xrange(n + 1):
- for n in xrange(n + 1):
- output.write(' KEYS(e_%d, n_%d),\n' % (n, n))
- output.write('};\n')
+ for n in range(n + 1):
+ output.write(u' KEYS(e_{0}, n_{0}),\n'.format(n))
+ output.write(u'};\n')
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment