summarylogtreecommitdiffstats
path: root/01_adapt-for-y2025.patch
blob: 71e8a9d79d71bbe765e741f12826e31655a0d5e6 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
diff -rU1 isdnutils-3.25.orig/isdnlog/tools/cdb/freecdb.h isdnutils-3.25/isdnlog/tools/cdb/freecdb.h
--- isdnutils-3.25.orig/isdnlog/tools/cdb/freecdb.h	2025-01-10 22:13:36.664167094 +0100
+++ isdnutils-3.25/isdnlog/tools/cdb/freecdb.h	2025-01-10 22:35:08.040885187 +0100
@@ -5,9 +5,5 @@
 #include "config.h"
-#if SIZEOF_INT==4
-typedef unsigned int uint32 ;
-#elif SIZEOF_LONG==4
-typedef unsigned long uint32 ;
-#else
-#error "No uint32"
-#endif
+#include <stdbool.h>
+#include <stdint.h>
+typedef uint32_t uint32 ;
 extern uint32 cdb_hash();
diff -rU1 isdnutils-3.25.orig/isdnlog/tools/cdb/freecdbmake.h isdnutils-3.25/isdnlog/tools/cdb/freecdbmake.h
--- isdnutils-3.25.orig/isdnlog/tools/cdb/freecdbmake.h	2025-01-10 22:13:36.664167094 +0100
+++ isdnutils-3.25/isdnlog/tools/cdb/freecdbmake.h	2025-01-10 22:34:46.624217672 +0100
@@ -6,9 +6,4 @@
 #include "config.h"
-#if SIZEOF_INT==4
-typedef unsigned int uint32 ;
-#elif SIZEOF_LONG==4
-typedef unsigned long uint32 ;
-#else
-#error "No uint32"
-#endif
+#include <stdint.h>
+typedef uint32_t uint32 ;
 #endif
diff -rU1 isdnutils-3.25.orig/isdnlog/tools/zone/common.h isdnutils-3.25/isdnlog/tools/zone/common.h
--- isdnutils-3.25.orig/isdnlog/tools/zone/common.h	2025-01-10 22:13:36.670833761 +0100
+++ isdnutils-3.25/isdnlog/tools/zone/common.h	2025-01-10 23:01:01.210947039 +0100
@@ -52,24 +52,7 @@
 /* dest.c doesn't need this */
-
-/* if the following doesn't - how can we find datatypes with len 1,2,4 ? */
-#if SIZEOF_CHAR != 1
-	Something is wrong sizeof(char) != 1
-#else
-	typedef unsigned char  UC;
-#endif
-#if SIZEOF_SHORT != 2
-	Something is wrong sizeof(short) != 2
-#else
-	typedef unsigned short US; /* len 2 */
-#endif
-#if SIZEOF_LONG != 4
-	#if SIZEOF_INT != 4
-		Something is wrong sizeof(long/int) != 4
-	#else
-		typedef unsigned int  UL; /* len 4 */
-	#endif
-#else
-	typedef unsigned long  UL; /* len 4 */
-#endif
+#include <stdint.h>
+typedef uint8_t  UC; /* len 1 */
+typedef uint16_t US; /* len 2 */
+typedef uint32_t  UL; /* len 4 */
 #endif /* _DEST_C_ */
-typedef enum {false,true} bool;
+// typedef enum {false,true} bool;
diff -rU1 isdnutils-3.25.orig/vbox/src/vbox.c isdnutils-3.25/vbox/src/vbox.c
--- isdnutils-3.25.orig/vbox/src/vbox.c	2025-01-10 22:13:36.677500428 +0100
+++ isdnutils-3.25/vbox/src/vbox.c	2025-01-10 23:15:02.120980558 +0100
@@ -1803,5 +1803,7 @@
 
-	for (y = 0; y < (win->_maxy + 1); y++)
+	// for (y = 0; y < (win->_maxy + 1); y++)
+	for (y = 0; y < (getmaxy + 1); y++)
 	{
-		mvwhline(win, y, 0, ' ', (win->_maxx + 1));
+		// mvwhline(win, y, 0, ' ', (win->_maxx + 1));
+		mvwhline(win, y, 0, ' ', (getmaxx + 1));
 	}