summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Stürmer Daitx <tdaitx@gmail.com>2015-08-29 18:56:33 -0300
committerTiago Stürmer Daitx <tdaitx@gmail.com>2015-08-29 19:28:18 -0300
commit326b4e070468b0c040e2170365e5651d56a9788b (patch)
tree8d943e00328e7cea3246affe00a34ad6930057fd
parent0cb4ed0cdb88373f255bfc94e6b236e444ab24a7 (diff)
downloadbluez-tools-326b4e070468b0c040e2170365e5651d56a9788b.tar.gz
Fix implicit pointer conversion in bt-device.c
Provide the right includes so gcc can know the right return type instead of assuming an integer. This fix prevents the implicit pointer conversion warning from happening (see [1] why it is good to avoid those kind of conversions). bt-device.c was missing an include for gio/gunixinputstream.c. configure.ac had to be updated to include gio-unix-2.0 module. [1] https://wiki.debian.org/ImplicitPointerConversions
-rw-r--r--configure.ac2
-rw-r--r--src/bt-device.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a772cb1..6211624 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,7 +39,7 @@ AC_HEADER_STDC
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.24.0])
-PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.26.0])
+PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.26.0 gio-unix-2.0 >= 2.26.0])
# Check for the availability of libreadline
AC_CHECK_HEADERS([readline/readline.h], [HAVE_READLINE_H=1])
diff --git a/src/bt-device.c b/src/bt-device.c
index 3472331..2b16432 100644
--- a/src/bt-device.c
+++ b/src/bt-device.c
@@ -32,6 +32,7 @@
#include <glib.h>
#include <gio/gio.h>
+#include <gio/gunixinputstream.h>
#include "lib/dbus-common.h"
#include "lib/helpers.h"