File: 0001-gcc-15-bool.patch

package info (click to toggle)
w-scan 20210218-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,872 kB
  • sloc: ansic: 12,752; sh: 4,310; xml: 33; makefile: 17
file content (26 lines) | stat: -rw-r--r-- 772 bytes parent folder | 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
--- a/tools.h
+++ b/tools.h
@@ -32,12 +32,6 @@
 /*******************************************************************************
 /* common typedefs && logging.
  ******************************************************************************/
-#ifndef bool
-  typedef int bool;
-  #define false 0
-  #define true  !(false)
-#endif
-
 #define min(a,b)  (b<a?b:a)
 #define max(a,b)  (b>a?b:a)
 #define diff(a,b) (a>b?(a-b):(b-a))
--- a/emulate.c
+++ b/emulate.c
@@ -199,7 +199,7 @@ int  em_getproperty(struct dtv_propertie
 }
 
 
-void em_lnb(int high_band, uint32_t high_val, uint32_t low_val) {
+void em_lnb(bool high_band, uint32_t high_val, uint32_t low_val) {
   em_device.highband = high_band;
   em_device.lnb_low = low_val;
   em_device.lnb_high = high_val;