Patchwork libgo patch committed: Fix type of last field of Cmsghdr

login
register
mail settings
Submitter Ian Taylor
Date Feb. 3, 2012, 1:05 a.m.
Message ID <mcrty38915f.fsf@dhcp-172-18-216-180.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/139269/
State New
Headers show

Comments

Ian Taylor - Feb. 3, 2012, 1:05 a.m.
This patch to libgo fixes the type of the last field of Cmsghdr from
[]byte to [0]byte.  Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

Patch

diff -r abc9201b3ab0 libgo/mksysinfo.sh
--- a/libgo/mksysinfo.sh	Thu Feb 02 14:58:22 2012 -0800
+++ b/libgo/mksysinfo.sh	Thu Feb 02 17:04:33 2012 -0800
@@ -507,6 +507,7 @@ 
         -e 's/cmsg_len *[a-zA-Z0-9_]*/Len Cmsghdr_len_t/' \
         -e 's/cmsg_level/Level/' \
         -e 's/cmsg_type/Type/' \
+        -e 's/\[\]/[0]/' \
       >> ${OUT}
 
   # The size of the cmsghdr struct.