summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-10-14 11:26:54 +0200
committerThomas Haller <thaller@redhat.com>2014-10-14 11:28:19 +0200
commitd5ceb0af1582283867cf9a73cb1443fab0f1c9e9 (patch)
treee0cfa4641e2be95582e176510efe789dc0b7d7e8
parent4f950ee5692e57bbc9737720adfd7ad6788dabb7 (diff)
downloadNetworkManager-d5ceb0af1582283867cf9a73cb1443fab0f1c9e9.tar.gz
bluez: fix compiler error due to redefinition of typedef
clang warns: make[5]: Entering directory `./NetworkManager/src/devices/bluetooth' CC nm-bluez5-dun.lo nm-bluez5-dun.c:50:3: error: redefinition of typedef 'NMBluez5DunContext' is a C11 feature [-Werror,-Wtypedef-redefinition] } NMBluez5DunContext; ^ ./nm-bluez5-dun.h:27:36: note: previous definition is here typedef struct _NMBluez5DunContext NMBluez5DunContext; ^ Fixes: f1c9595311f52d8b79e8d2032e006005613a8fb1 Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--src/devices/bluetooth/nm-bluez5-dun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bluetooth/nm-bluez5-dun.c b/src/devices/bluetooth/nm-bluez5-dun.c
index dcd3d73b9d..5bdd801453 100644
--- a/src/devices/bluetooth/nm-bluez5-dun.c
+++ b/src/devices/bluetooth/nm-bluez5-dun.c
@@ -34,7 +34,7 @@
#include "nm-logging.h"
#include "NetworkManagerUtils.h"
-typedef struct _NMBluez5DunContext {
+struct _NMBluez5DunContext {
bdaddr_t src;
bdaddr_t dst;
char *src_str;
@@ -47,7 +47,7 @@ typedef struct _NMBluez5DunContext {
gpointer user_data;
sdp_session_t *sdp_session;
guint sdp_watch_id;
-} NMBluez5DunContext;
+};
static void
dun_connect (NMBluez5DunContext *context)