mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Daniel Sabogal <dsabogalcc@gmail.com>
To: musl@lists.openwall.com
Subject: [PATCH] fix type for ifc_ifcu.ifcu_buf field of struct ifconf
Date: Thu, 15 Sep 2016 11:27:31 -0400	[thread overview]
Message-ID: <20160915152731.4897-2-dsabogalcc@gmail.com> (raw)
In-Reply-To: <20160915152731.4897-1-dsabogalcc@gmail.com>

linux, glibc, freebsd, and openbsd use a character pointer for this field
---
 include/net/if.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/if.h b/include/net/if.h
index 1a4059d..76a2528 100644
--- 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;
 		struct ifreq *ifcu_req;
 	} ifc_ifcu;
 };
-- 
2.10.0



  reply	other threads:[~2016-09-15 15:27 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 ` Daniel Sabogal [this message]
2016-09-15 20:25   ` [PATCH] fix type for ifc_ifcu.ifcu_buf field of struct ifconf Alexander Monakov
2016-09-15 21:42     ` Daniel Sabogal
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=20160915152731.4897-2-dsabogalcc@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).