summaryrefslogtreecommitdiff
path: root/x11-misc/xcalendar/files/xcalendar-4.0-clang16.patch
blob: 9e39901f9076196ce1e582ab9e51ce0edc467ea6 (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
https://bugs.gentoo.org/870484
--- a/lists.c
+++ b/lists.c
@@ -26,4 +26,5 @@
 #include "xcalendar.h"
 
+int is_last(LList *list);
 
 List 
@@ -150,5 +151,5 @@
 }
 
-is_last(list)
+int is_last(list)
     LList          *list;
 {
--- a/xcalendar.c
+++ b/xcalendar.c
@@ -1168,5 +1168,5 @@
     int             m, y;
 {
-    register        d, i;
+    int             d, i;
 
     calInit = y;
@@ -1217,5 +1217,5 @@
     int             yr;
 {
-    register        y, d;
+    int             y, d;
 
     /*
--- a/xcalendar.h
+++ b/xcalendar.h
@@ -38,4 +38,5 @@
 
 #include <stdio.h>
+#include <stdlib.h>
 #include  <X11/Xos.h>
 #include <X11/Xlib.h>