khvzak / bluez-tools

A set of tools to manage bluetooth devices for linux
GNU General Public License v2.0
176 stars 51 forks source link

Fix implicit pointer conversion in bt-device.c #7

Closed tdaitx closed 9 years ago

tdaitx commented 9 years ago

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 debian's implicity pointer conversion doc on 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.

Fixes Launchpad 1490204 and Debian 797356.

appdev-w commented 9 years ago

Thanks for picking that up :)