Return-Path: From: Natanael Copa To: linux-bluetooth@vger.kernel.org Cc: Natanael Copa Subject: [PATCH 1/3] bnep: avoid use of caddr_t Date: Fri, 17 Jan 2014 12:08:24 +0000 Message-Id: <1389960506-10273-1-git-send-email-ncopa@alpinelinux.org> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: caddr_t is legacy BSD and should be avoided. This fixes building against musl libc. --- profiles/network/bnep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/network/bnep.c b/profiles/network/bnep.c index 2a74016..4f9b801 100644 --- a/profiles/network/bnep.c +++ b/profiles/network/bnep.c @@ -202,7 +202,7 @@ static int bnep_if_up(const char *devname) ifr.ifr_flags |= IFF_UP; ifr.ifr_flags |= IFF_MULTICAST; - err = ioctl(sk, SIOCSIFFLAGS, (caddr_t) &ifr); + err = ioctl(sk, SIOCSIFFLAGS, (void *) &ifr); close(sk); @@ -227,7 +227,7 @@ static int bnep_if_down(const char *devname) ifr.ifr_flags &= ~IFF_UP; /* Bring down the interface */ - err = ioctl(sk, SIOCSIFFLAGS, (caddr_t) &ifr); + err = ioctl(sk, SIOCSIFFLAGS, (void *) &ifr); close(sk); -- 1.8.5.3