t002-fix-init-elemnt.diff - mkports - recipes for building multiple softwares with mk(1)
 (HTM) git clone git://z3bra.org/mkports
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       t002-fix-init-elemnt.diff (677B)
       ---
            1 diff -Naur iputils-s20121221.orig/ping.c iputils-s20121221/ping.c
            2 --- iputils-s20121221.orig/ping.c        2014-01-24 15:05:02.082841335 +0000
            3 +++ iputils-s20121221/ping.c        2014-01-24 15:17:12.975882203 +0000
            4 @@ -774,9 +774,16 @@
            5  
            6          do {
            7                  static struct iovec iov = {outpack, 0};
            8 -                static struct msghdr m = { &whereto, sizeof(whereto),
            9 -                                                   &iov, 1, &cmsg, 0, 0 };
           10 -                m.msg_controllen = cmsg_len;
           11 +                static struct msghdr m;
           12 +
           13 +                m.msg_name = &whereto;
           14 +                m.msg_namelen = sizeof(whereto);
           15 +                m.msg_iov = &iov;
           16 +                m.msg_iovlen = 1;
           17 +                m.msg_control = &cmsg;
           18 +                m.msg_controllen = sizeof(cmsg);
           19 +                m.msg_flags = 0;
           20 +
           21                  iov.iov_len = cc;
           22  
           23                  i = sendmsg(icmp_sock, &m, confirm);