Re: [PATCH] emulator/hciemu: Fix return value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Gowtham,

On Mon, Nov 16, 2015, Gowtham Anandha Babu wrote:
> make throws out the following errors.
> 
> emulator/hciemu.c: In function ‘hciemu_get_master_scan_enable’:
> emulator/hciemu.c:433:3: error: return makes integer from pointer without a cast [-Werror]
>    return NULL;
>    ^
> emulator/hciemu.c: In function ‘hciemu_get_master_le_scan_enable’:
> emulator/hciemu.c:441:3: error: return makes integer from pointer without a cast [-Werror]
>    return NULL;
>    ^
> cc1: all warnings being treated as errors
> 
> Fixed by returning zero.
> ---
>  emulator/hciemu.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied. Thanks.

Interestingly these were previously returning 'bool' instead of 'uint8_t'
which apparently didn't cause this kind of warning.

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux