Package: entropybroker / 2.9-5

ftbfs-32bit.patch Patch series | download
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Description: constants for status codes are unsigned long, so variables
             holding this code must be unsigned long as well
Author: Thorsten Alteholz <debian@alteholz.de>
Index: entropybroker-2.9/ComScire_R2000KU/qwqng.hpp
===================================================================
--- entropybroker-2.9.orig/ComScire_R2000KU/qwqng.hpp	2020-12-31 17:25:48.983549421 +0100
+++ entropybroker-2.9/ComScire_R2000KU/qwqng.hpp	2020-12-31 17:25:48.979549141 +0100
@@ -284,9 +284,9 @@
     static QngStatus& Instance();
     
     /* Functions */
-    long GetStatus();
+    unsigned long GetStatus();
     std::string& GetStatusString();
-    long SetStatus(long newStatus);
+    unsigned long SetStatus(unsigned long newStatus);
 
 private:
   
@@ -305,7 +305,7 @@
 private:  
   
     /* properties */
-    long status_;
+    unsigned long status_;
     std::string statusString_;
     
 };
Index: entropybroker-2.9/ComScire_R2000KU/qwqng.cpp
===================================================================
--- entropybroker-2.9.orig/ComScire_R2000KU/qwqng.cpp	2020-12-31 17:25:48.983549421 +0100
+++ entropybroker-2.9/ComScire_R2000KU/qwqng.cpp	2020-12-31 17:25:48.979549141 +0100
@@ -762,7 +762,7 @@
 
 
 
-long QngStatus::GetStatus() {
+unsigned long QngStatus::GetStatus() {
     return status_;
 }
 
@@ -772,7 +772,7 @@
 }
 
 
-long QngStatus::SetStatus(long newStatus) {
+unsigned long QngStatus::SetStatus(unsigned long newStatus) {
     if (status_ != QNG_S_OK) {
 	if ((newStatus != QNG_S_OK) && (newStatus != QNG_E_STATS_EXCEPTION) && (newStatus != QNG_E_DEVICE_NOT_OPENED))
 	    return status_;