File: 0005-Readpst-Fix-a-build-with-gcc-C23-standard.patch

package info (click to toggle)
libpst 0.6.76-1.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,928 kB
  • sloc: ansic: 7,673; sh: 4,730; javascript: 1,950; cpp: 1,691; makefile: 137; xml: 3
file content (33 lines) | stat: -rw-r--r-- 1,009 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
27
28
29
30
31
32
33
From: Milan Crha <mcrha@redhat.com>
Date: Wed, 22 Jan 2025 08:45:35 +0100
Subject: readpst: Fix a build with gcc/C23 standard
Origin: upstream, https://github.com/pst-format/libpst/commit/cc600ee98c4ed23b8ab0bc2cf6b6c6e9cb587e89
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097253

The prototype definitions did not match, but earlier gcc (or pre C23)
did not claim an error on it.
---
 src/readpst.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/readpst.c b/src/readpst.c
index fbd90c7..af3ae47 100644
--- a/src/readpst.c
+++ b/src/readpst.c
@@ -26,7 +26,6 @@ struct file_ll {
     int32_t skip_count;
 };
 
-int       grim_reaper();
 pid_t     try_fork(char* folder);
 void      process(pst_item *outeritem, pst_desc_tree *d_ptr);
 void      write_email_body(FILE *f, char *body);
@@ -152,7 +151,7 @@ sem_t*      output_mutex    = NULL;
 #endif
 
 
-int grim_reaper(int waitall)
+static int grim_reaper(int waitall)
 {
     int available = 0;
 #ifdef HAVE_FORK