File: add-prototype.patch

package info (click to toggle)
python-axolotl-curve25519 0.4.1.post2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 660 kB
  • sloc: ansic: 5,207; python: 25; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (3)
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 <josue@debian.org>
Forwarded: https://github.com/tgalal/python-axolotl-curve25519/pull/2
Last-Update: 2018-05-05

--- a/curve/ed25519/additions/zeroize.c
+++ b/curve/ed25519/additions/zeroize.c
@@ -9,7 +9,7 @@
     p[count] = 0;
 }
 
-void zeroize_stack()
+void zeroize_stack(void)
 {
   unsigned char m[ZEROIZE_STACK_SIZE];
   zeroize(m, ZEROIZE_STACK_SIZE);
--- 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