File: 04_fix-build-with-gcc15.patch

package info (click to toggle)
ziproxy 3.3.2-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,184 kB
  • sloc: ansic: 9,864; sh: 1,705; makefile: 37
file content (32 lines) | stat: -rw-r--r-- 1,163 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
Description: Fix build with GCC-15
Author: Marcos Talau <talau@debian.org>
Bug-Debian: https://bugs.debian.org/1098200
Forwarded: https://sourceforge.net/p/ziproxy/bugs/37
Last-Update: 2025-09-13

Index: ziproxy/src/image.c
===================================================================
--- ziproxy.orig/src/image.c
+++ ziproxy/src/image.c
@@ -1216,7 +1216,7 @@ int jpg2bitmap(char *inbuf, int insize,
 	return IMG_RET_OK;
 }
 
-static boolean jpeg_dest_empty_output_buffer()
+static boolean jpeg_dest_empty_output_buffer(struct jpeg_compress_struct *)
 {
 		return FALSE; //output file larger than original..
 }
Index: ziproxy/src/netd.c
===================================================================
--- ziproxy.orig/src/netd.c
+++ ziproxy/src/netd.c
@@ -84,7 +84,7 @@
 #include "txtfiletools.h"
 #include "session.h"
 
-int	proxy_server ();
+int	proxy_server (struct in_addr *addr_low, struct in_addr *addr_high);
 int	proxy_handlereq (SOCKET sock_client, const char *client_addr, struct sockaddr_in *socket_host);
 void	process_request (const char *client_addr, struct sockaddr_in *socket_host, SOCKET sock_child_out);
 void 	daemon_sigcatch (int);