<div dir="ltr"><div>root@hty-compute2:~# /lib/x86_64-linux-gnu/libc.so.6 <br></div><div><div>GNU C Library (Ubuntu EGLIBC 2.15-0ubuntu10.5) stable release<u><b> version 2.15</b></u>, by Roland McGrath et al.</div><div>Copyright (C) 2012 Free Software Foundation, Inc.</div><div>This is free software; see the source for copying conditions.</div><div>There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A</div><div>PARTICULAR PURPOSE.</div><div>Compiled by<u> <b>GNU CC version 4.6.3</b></u>.</div><div>Compiled on a Linux 3.2.50 system on 2013-09-30.</div><div>Available extensions:</div><div><span class="" style="white-space:pre"> </span>crypt add-on version 2.1 by Michael Glad and others</div><div><span class="" style="white-space:pre"> </span>GNU Libidn by Simon Josefsson</div><div><span class="" style="white-space:pre"> </span>Native POSIX Threads Library by Ulrich Drepper et al</div><div><span class="" style="white-space:pre"> </span>BIND-8.2.3-T5B</div><div>libc ABIs: UNIQUE IFUNC</div><div>For bug reporting instructions, please see:</div><div><<a href="http://www.debian.org/Bugs/">http://www.debian.org/Bugs/</a>>.</div><div>root@hty-compute2:~# </div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 31, 2014 at 4:00 PM, Hitoshi Mitake <span dir="ltr"><<a href="mailto:mitake.hitoshi@lab.ntt.co.jp" target="_blank">mitake.hitoshi@lab.ntt.co.jp</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">At Fri, 31 Oct 2014 10:28:34 +0800,<br>
Jinzhi Chen wrote:<br>
><br>
> [1 <multipart/alternative (7bit)>]<br>
> [1.1 <text/plain; UTF-8 (quoted-printable)>]<br>
<span class="">> this problem still exits in the master branch,<br>
> seems not merged into master or devel branch<br>
<br>
</span>On my environment, the warning messages cannot be seen. Could you<br>
provide information of your environment (e.g. glibc version?)?<br>
<br>
Thanks,<br>
Hitoshi<br>
<div><div class="h5"><br>
><br>
> On Tue, Oct 14, 2014 at 4:13 PM, Liu Yuan <<a href="mailto:namei.unix@gmail.com">namei.unix@gmail.com</a>> wrote:<br>
><br>
> > Fix following warning:<br>
> ><br>
> > ...<br>
> > cluster/corosync.c: In function ‘corosync_get_local_addr’:<br>
> > cluster/corosync.c:132:22: warning: declaration of ‘sin’ shadows a global<br>
> > declaration [-Wshadow]<br>
> > CCLD sheep<br>
> > make[1]: Leaving directory `/home/test/sheepdog/sheep'<br>
> > ...<br>
> ><br>
> > Signed-off-by: Liu Yuan <<a href="mailto:namei.unix@gmail.com">namei.unix@gmail.com</a>><br>
> > ---<br>
> > sheep/cluster/corosync.c | 4 ++--<br>
> > 1 file changed, 2 insertions(+), 2 deletions(-)<br>
> ><br>
> > diff --git a/sheep/cluster/corosync.c b/sheep/cluster/corosync.c<br>
> > index f876112..b7fc025 100644<br>
> > --- a/sheep/cluster/corosync.c<br>
> > +++ b/sheep/cluster/corosync.c<br>
> > @@ -129,7 +129,7 @@ static int corosync_get_local_addr(uint8_t *addr)<br>
> > int ret, nr;<br>
> > corosync_cfg_node_address_t caddr;<br>
> > struct sockaddr_storage *ss = (struct sockaddr_storage<br>
> > *)caddr.address;<br>
> > - struct sockaddr_in *sin = (struct sockaddr_in *)caddr.address;<br>
> > + struct sockaddr_in *sin4 = (struct sockaddr_in *)caddr.address;<br>
> > struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)caddr.address;<br>
> > void *saddr;<br>
> ><br>
> > @@ -149,7 +149,7 @@ static int corosync_get_local_addr(uint8_t *addr)<br>
> > saddr = &sin6->sin6_addr;<br>
> > memcpy(addr, saddr, 16);<br>
> > } else if (ss->ss_family == AF_INET) {<br>
> > - saddr = &sin->sin_addr;<br>
> > + saddr = &sin4->sin_addr;<br>
> > memset(addr, 0, 16);<br>
> > memcpy(addr + 12, saddr, 4);<br>
> > } else {<br>
> > --<br>
> > 1.9.1<br>
> ><br>
> > --<br>
> > sheepdog mailing list<br>
> > <a href="mailto:sheepdog@lists.wpkg.org">sheepdog@lists.wpkg.org</a><br>
> > <a href="http://lists.wpkg.org/mailman/listinfo/sheepdog" target="_blank">http://lists.wpkg.org/mailman/listinfo/sheepdog</a><br>
> ><br>
</div></div>> [1.2 <text/html; UTF-8 (quoted-printable)>]<br>
><br>
> [2 <text/plain; us-ascii (7bit)>]<br>
<div class="HOEnZb"><div class="h5">> --<br>
> sheepdog mailing list<br>
> <a href="mailto:sheepdog@lists.wpkg.org">sheepdog@lists.wpkg.org</a><br>
> <a href="http://lists.wpkg.org/mailman/listinfo/sheepdog" target="_blank">http://lists.wpkg.org/mailman/listinfo/sheepdog</a><br>
</div></div></blockquote></div><br></div>