File: 60_gcc14.patch

package info (click to toggle)
httperf 0.9.0-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,320 kB
  • sloc: sh: 8,789; ansic: 6,692; makefile: 29
file content (14 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: httperf/src/idleconn.c
Description: fix issue detected with gcc14
===================================================================
--- httperf.orig/src/idleconn.c	2024-08-04 13:11:38.564124746 +0200
+++ httperf/src/idleconn.c	2024-08-04 19:17:55.689734197 +0200
@@ -161,7 +161,7 @@
 	    }
 
 	  sin = server_addr;
-	  if (connect (sd, &sin, sizeof (sin)) < 0)
+	  if (connect (sd, (const struct sockaddr *)&sin, sizeof (sin)) < 0)
 	    {
 	      printf("connect: %s\n", strerror (errno));
 	      switch (errno)