summaryrefslogtreecommitdiff
path: root/net-wireless/wepattack/files/wepattack-0.1.3-modern-c.patch
blob: f24d44813f3902da5bdc6bb26a5d6443e9b9f3aa (plain)
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
28
29
30
31
32
33
https://bugs.gentoo.org/881007
--- a/src/log.c
+++ b/src/log.c
@@ -25,6 +25,7 @@
 #include "log.h"
 #include "wepattack.h"
 #include "config.h"
+#include "misc.h"
 
 static time_t start_time;
 char logfile[40];
--- a/src/misc.c
+++ b/src/misc.c
@@ -23,6 +23,7 @@
 #include "wepattack.h"
 #include "config.h"
 #include "misc.h"
+#include "log.h"
 
 double difftime_us(struct timeval *time_start, struct timeval *time_end) {
 
@@ -87,8 +88,10 @@ d_fprintf (FILE *__restrict __stream,
 	__const char *__restrict __format,...) {
 
 	if (DEBUG) {
-		fprintf(__stream, __format);
+		return fprintf(__stream, __format);
 	}
+
+	return 0;
 }
 
 void print_hex_array(FILE* out, unsigned char* data, int length) {