| 1 |
--- a/dns_flood_detector.c |
| 2 |
+++ b/dns_flood_detector.c |
| 3 |
@@ -166,7 +166,10 @@ |
| 4 |
#define BCAST 0xffFFffFF |
| 5 |
|
| 6 |
// this is our statistics thread |
| 7 |
-void *run_stats () { |
| 8 |
+void *run_stats (void *arg) { |
| 9 |
+ // suppress unused parameter warning |
| 10 |
+ (void)arg; |
| 11 |
+ |
| 12 |
// prepare multicast socket |
| 13 |
struct sockaddr_in addr; |
| 14 |
int sock; |
| 15 |
@@ -197,6 +200,9 @@ |
| 16 |
pthread_mutex_unlock(&stats_lock); |
| 17 |
sleep (option_w); |
| 18 |
} |
| 19 |
+ |
| 20 |
+ // Not reached, but required to match function signature |
| 21 |
+ return NULL; |
| 22 |
} |
| 23 |
|
| 24 |
// report saddr stats |