Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/3] bnep: avoid use of caddr_t
@ 2014-01-17 12:08 Natanael Copa
  2014-01-17 12:08 ` [PATCH 2/3] various header include fixes for building with musl libc Natanael Copa
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Natanael Copa @ 2014-01-17 12:08 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Natanael Copa

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


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-03-05 20:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-17 12:08 [PATCH 1/3] bnep: avoid use of caddr_t Natanael Copa
2014-01-17 12:08 ` [PATCH 2/3] various header include fixes for building with musl libc Natanael Copa
2014-01-17 12:08 ` [PATCH 3/3] unit: prevent use of glibc's error(3) Natanael Copa
2014-01-17 14:37   ` Luiz Augusto von Dentz
2014-01-17 15:07     ` Natanael Copa
2014-01-17 14:47 ` [PATCH 1/3] bnep: avoid use of caddr_t Luiz Augusto von Dentz
2014-01-22 13:50   ` [PATCH v2 0/3] Various fixes for building bluez with musl libc Natanael Copa
2014-01-22 13:50     ` [PATCH v2 1/3] various header include fixes for building " Natanael Copa
2014-01-22 15:16       ` Anderson Lizardo
2014-01-22 16:03         ` Marcel Holtmann
2014-01-22 16:07         ` Natanael Copa
2014-01-22 18:06           ` Anderson Lizardo
2014-01-22 21:20             ` [PATCH v3] " Natanael Copa
2014-03-05 20:32               ` Johan Hedberg
2014-01-22 13:50     ` [PATCH v2 2/3] bnep: avoid use of caddr_t Natanael Copa
2014-01-22 13:50     ` [PATCH v2 3/3] unit: prevent use of glibc's error(3) Natanael Copa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox