From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10477 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Sabogal Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH v2] fix ifru_data and ifcu_buf types in net/if.h Date: Fri, 16 Sep 2016 13:34:24 -0400 Message-ID: <20160916173424.26062-1-dsabogal@ufl.edu> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1474047303 11839 195.159.176.226 (16 Sep 2016 17:35:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2016 17:35:03 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10490-gllmg-musl=m.gmane.org@lists.openwall.com Fri Sep 16 19:34:59 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1bkx2K-0001qa-1m for gllmg-musl@m.gmane.org; Fri, 16 Sep 2016 19:34:52 +0200 Original-Received: (qmail 32312 invoked by uid 550); 16 Sep 2016 17:34:51 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 32280 invoked from network); 16 Sep 2016 17:34:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=lDRdpchwyLCjKWEiU1dt5Gu6q5R1X8xRmhaSHW4uinA=; b=ySFHvVi26g+hqeCTVOfaSwXsYnxUfkHypgeOGoHVmd+9ZtOlp8ilAvP+8LRcseDG2H U5naTlJ1rc8dmTJYMPSKkiVaGe4TwTWEKd/DVIQEC2bTOrnyDPzLEB3mfyxfyadXy37Q y3ZBM+JU1lGR54S+uoaf91ESFBYLPwefIbxKeGkwnYxFpBDgF/9BmPlLzVRxOhIwJIc0 SDgineGpXp1PMhwnnmUtwTNlcLssFboF0MiEPDZWx5azni1h55G6fxzY64veGIQ5Q8LY y83Fzxk+FNbC0f3NPUJc39elNDGInvZ+vwJRJqIIqQxmdQ4rBFQ1CRgKzfBltYH+RqVo JNUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=lDRdpchwyLCjKWEiU1dt5Gu6q5R1X8xRmhaSHW4uinA=; b=b68c9qE9R8AZ+5nS4Li046P7SUY5aQI3J044zGdM5tX7ehzILYOm2Y+3fCZLT2CzKB wRfMJndeNLo0ENgMTrSypLra0+1dYu5r7MxvIKfgXDvAZVm+FOqiBR88zPAzets17O26 gE/F3Wr0UzCPf/8eQIfmtXyl34OROPn47LVkncO0ITh9nraD81wSNJbFHuhU0F9xeECJ 3hMBRPq4VRgYUW3sozKcepPaeSGDojvpf73sn9Uxuhfz42Q/nvtc3QBCpTOdnw1gGLvB dVBToqJQFakLqOSMtBHJtMiy1Ieius2Nop1cY85jOuc0+2/6o2Qs8wGUmDtocraZEWQX 8LUw== X-Gm-Message-State: AE9vXwNyLk1ZmXTnVH1vnXqaGjdX+RnmUGYpAFvltbMjEBYhbR870x13j/zLYSqpG7xfqA== X-Received: by 10.31.21.212 with SMTP id 203mr3932161vkv.113.1474047278645; Fri, 16 Sep 2016 10:34:38 -0700 (PDT) X-Google-Original-From: Daniel Sabogal X-Mailer: git-send-email 2.10.0 Xref: news.gmane.org gmane.linux.lib.musl.general:10477 Archived-At: From: Daniel Sabogal glibc, freebsd, and openbsd use character pointers (caddr_t) for these fields. only linux uses void pointer for the ifru_data type. --- include/net/if.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/net/if.h b/include/net/if.h index 1a4059d..2f2fcc1 100644 --- a/include/net/if.h +++ b/include/net/if.h @@ -89,7 +89,7 @@ struct ifreq { struct ifmap ifru_map; char ifru_slave[IFNAMSIZ]; char ifru_newname[IFNAMSIZ]; - void *ifru_data; + char *ifru_data; } ifr_ifru; }; @@ -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