File: flexible-array-member.patch

package info (click to toggle)
modglue 1.17-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 656 kB
  • sloc: cpp: 4,011; sh: 193; makefile: 137
file content (24 lines) | stat: -rw-r--r-- 577 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
Author: Andreas Beckmann <anbe@debian.org>
Description: disable an unused struct that was violating flexible array constraints
Bug-Debian: https://bugs.debian.org/954602

--- a/src/pipe.cc
+++ b/src/pipe.cc
@@ -236,13 +236,17 @@ int modglue::pipe::send_blocking_(const
 		// CHECKED: sendmsg is not the reason for dropped bytes
 		struct iovec iov[1];
 		struct msghdr msg;
+/*
 		struct {
 				struct cmsghdr cm;
 				int  fd;
 		} cmsg;
+*/
 		
 		memset( &msg, 0, sizeof(msg) );
+/*
 		memset( &cmsg, 0, sizeof(cmsg) );
+*/
 	
 		msg.msg_control=0;
 		msg.msg_controllen=0;