File: 0011-Fix-non-void-function-does-not-return-a-value-Wretur.patch

package info (click to toggle)
rarcrack 0.2%2B20240214~413ea3a-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 376 kB
  • sloc: ansic: 359; sh: 70; makefile: 26
file content (28 lines) | stat: -rw-r--r-- 762 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
28
From: =?utf-8?b?0L3QsNCx?= <nabijaczleweli@nabijaczleweli.xyz>
Date: Mon, 25 Nov 2024 21:51:13 +0100
Subject: Fix non-void function does not return a value [-Wreturn-type]

---
 rarcrack.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rarcrack.c b/rarcrack.c
index 0be9f59..f6a1e8a 100644
--- a/rarcrack.c
+++ b/rarcrack.c
@@ -237,6 +237,7 @@ void *status_thread() {
         xmlMutexUnlock(pwdMutex);
         savestatus();	//FIXME: this is wrong, when probing current password(s) is(are) not finished yet, and the program is exiting
     }
+    return 0;
 }
 
 void *crack_thread() {
@@ -281,6 +282,7 @@ void *crack_thread() {
         xmlMutexUnlock(finishedMutex);
     }
     free(ret);
+    return 0;
 }
 
 void crack_start(unsigned int threads) {