From: Daniel Sabogal <dsabogalcc@gmail.com>
To: musl@lists.openwall.com
Subject: Re: [PATCH] fix type for ifc_ifcu.ifcu_buf field of struct ifconf
Date: Thu, 15 Sep 2016 17:42:48 -0400 [thread overview]
Message-ID: <CAFhhQJRWb_RT0PFEf+0O_SzVFE_dTxDBCKuYeEJaBgSz59MvsQ@mail.gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.20.13.1609152324210.30232@monopod.intra.ispras.ru>
On Thu, Sep 15, 2016 at 4:25 PM, Alexander Monakov <amonakov@ispras.ru> wrote:
> On Thu, 15 Sep 2016, Daniel Sabogal wrote:
>> linux, glibc, freebsd, and openbsd use a character pointer for this field
>> --- a/include/net/if.h
>> +++ b/include/net/if.h
>> @@ -116,7 +116,7 @@ struct ifreq {
>> struct ifconf {
>> int ifc_len;
>> union {
>> - void *ifcu_buf;
>> + char *ifcu_buf;
>
> Declaration of 'ifru_data' in that header has the same issue.
I originally considered changing this one but had left it out since
linux disagree on the type (void *).
next prev parent reply other threads:[~2016-09-15 21:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-15 15:27 [PATCH] fix if_indextoname error case Daniel Sabogal
2016-09-15 15:27 ` [PATCH] fix type for ifc_ifcu.ifcu_buf field of struct ifconf Daniel Sabogal
2016-09-15 20:25 ` Alexander Monakov
2016-09-15 21:42 ` Daniel Sabogal [this message]
2016-09-16 8:12 ` Alexander Monakov
2016-09-16 14:57 ` Rich Felker
2016-09-16 22:03 ` [PATCH] fix if_indextoname error case Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFhhQJRWb_RT0PFEf+0O_SzVFE_dTxDBCKuYeEJaBgSz59MvsQ@mail.gmail.com \
--to=dsabogalcc@gmail.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).