File: fix-ftbfs-gcc15.patch

package info (click to toggle)
xlog 2.0.25-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,520 kB
  • sloc: ansic: 24,207; javascript: 7,886; sh: 4,456; makefile: 695; sed: 16; xml: 8
file content (50 lines) | stat: -rw-r--r-- 1,270 bytes parent folder | download | duplicates (2)
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: Fix FTBFS bug with gcc-15
Author: Ervin Hegedus <airween@gmail.com>
Bug-Debian: https://bugs.debian.org/1098152

---
Origin: vendor
Last-Update: 2025-02-18

--- xlog-2.0.24.orig/src/strptime.c
+++ xlog-2.0.24/src/strptime.c
@@ -52,10 +52,7 @@
 #  define localtime_r my_localtime_r
 static struct tm *localtime_r __P ((const time_t *, struct tm *));
 static struct tm *
-localtime_r (t, tp)
-     const time_t *t;
-     struct tm *tp;
-{
+localtime_r (const time_t *t, struct tm *tp) {
   struct tm *l = localtime (t);
   if (! l)
     return 0;
@@ -254,13 +251,7 @@ static char *
 #ifdef _LIBC
 internal_function
 #endif
-strptime_internal (rp, fmt, tm, decided, era_cnt)
-     const char *rp;
-     const char *fmt;
-     struct tm *tm;
-     enum locale_status *decided;
-     int era_cnt;
-{
+strptime_internal (const char *rp, const char *fmt, struct tm *tm, enum locale_status *decided, int era_cnt) {
   const char *rp_backup;
   int cnt;
   size_t val;
@@ -988,11 +979,7 @@ strptime_internal (rp, fmt, tm, decided,
 
 
 char *
-mystrptime (buf, format, tm)
-     const char *buf;
-     const char *format;
-     struct tm *tm;
-{
+mystrptime (const char *buf, const char *format, struct tm *tm) {
   enum locale_status decided;
 
 #ifdef _NL_CURRENT