File: c99-fix.diff

package info (click to toggle)
libitl 0.8.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,632 kB
  • sloc: ansic: 3,150; python: 55; sh: 33; makefile: 4
file content (35 lines) | stat: -rw-r--r-- 1,316 bytes parent folder | download | duplicates (3)
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
Description: Fix C99 compatibility issue
Origin: https://github.com/arabeyes-org/ITL/commit/b902a81f58a4d5fe598be1b1932144128ccc5194
Author: DJ Delorie <dj@redhat.com>

diff --git a/hijri/hijri.c b/hijri/hijri.c
index 2ad7492..f3ca907 100644
--- a/hijri/hijri.c
+++ b/hijri/hijri.c
@@ -96,6 +96,10 @@ char *h_month_short[13] = {"skip",
 			   "Ram", "Sha", "Qid", "Hij"};
 
 
+/* Forward declarations for C99 compatibility.  */
+int g_absolute(int day, int month, int year);
+int g_numdays(int month, int year);
+
 /* Store-off any events for passed-in date */
 int
 get_events(char ***addr_event,
diff --git a/hijri/umm_alqura.c b/hijri/umm_alqura.c
index 085518e..42583a3 100644
--- a/hijri/umm_alqura.c
+++ b/hijri/umm_alqura.c
@@ -68,6 +68,11 @@ double ip(double x);
 int mod(double x, double y);
 int IsValid(int yh, int mh, int dh);
 
+int fill_datestruct(sDate *fdate, int weekday, int frm_month_num,
+		    int to_month_num, char *frm_day[], char *frm_day_short[],
+		    char *frm_month[], char *frm_month_short[], char *to_day[],
+		    char *to_day_short[], char *to_month[],
+		    char *to_month_short[], sEvent *farr_table, int farr_size);
 
 /****************************************************************************/
 /* Name:    Hsub2G                                                          */