File: add-prototype.patch

package info (click to toggle)
python-axolotl-curve25519 0.1-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 624 kB
  • sloc: ansic: 4,750; python: 25; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 721 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: : Redefined function definition in order to avoid function declaration
 isn't a prototype warning [-Wstrict-prototypes].
Author: Josue Ortega <josueortega@debian.org.gt>
Forwarded: https://github.com/tgalal/python-axolotl-curve25519/pull/2
Last-Update: 2015-02-15

--- a/curve/ed25519/additions/zeroize.h
+++ b/curve/ed25519/additions/zeroize.h
@@ -7,6 +7,6 @@
 
 void zeroize(unsigned char* b, size_t len);
 
-void zeroize_stack();
+void zeroize_stack(void);
 
 #endif
--- a/curve/ed25519/additions/zeroize.c
+++ b/curve/ed25519/additions/zeroize.c
@@ -10,7 +10,7 @@
     p[count] = 0;
 }
 
-void zeroize_stack()
+void zeroize_stack(void)
 {
   unsigned char m[ZEROIZE_STACK_SIZE];
   zeroize(m, sizeof m);