rpms/avahi/devel avahi-0.6.11-align.patch,NONE,1.1

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon Sep 18 10:41:57 UTC 2006


Author: stransky

Update of /cvs/dist/rpms/avahi/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv25608

Added Files:
	avahi-0.6.11-align.patch 
Log Message:
added an align patch

avahi-0.6.11-align.patch:
 socket.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

--- NEW FILE avahi-0.6.11-align.patch ---
--- avahi-0.6.11.old/avahi-core/socket.c	2006-06-22 11:16:30.000000000 +0100
+++ avahi-0.6.11/avahi-core/socket.c	2006-09-18 10:07:23.000000000 +0100
@@ -475,10 +475,10 @@ int avahi_send_dns_packet_ipv4(
     struct iovec io;
 #ifdef IP_PKTINFO
     struct cmsghdr *cmsg;
-    uint8_t cmsg_data[CMSG_SPACE(sizeof(struct in_pktinfo))];
+    size_t cmsg_data[( CMSG_SPACE(sizeof(struct in_pktinfo)) / sizeof(size_t)) + 1];
 #elif defined(IP_SENDSRCADDR)
     struct cmsghdr *cmsg;
-    uint8_t cmsg_data[CMSG_SPACE(sizeof(struct in_addr))];
+    size_t cmsg_data[( CMSG_SPACE(sizeof(struct in_addr)) / sizeof(size_t)) + 1];
 #endif
 
     assert(fd >= 0);
@@ -565,7 +565,7 @@ int avahi_send_dns_packet_ipv6(int fd, A
     struct msghdr msg;
     struct iovec io;
     struct cmsghdr *cmsg;
-    uint8_t cmsg_data[CMSG_SPACE(sizeof(struct in6_pktinfo))];
+    size_t cmsg_data[(CMSG_SPACE(sizeof(struct in6_pktinfo))/sizeof(size_t)) + 1];
 
     assert(fd >= 0);
     assert(p);




More information about the fedora-cvs-commits mailing list