[PATCH 3/3] client/display: Fix compilation warning on Android

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

 



isprint requires ctype.h include.

target thumb C: btmgmt <= external/bluetooth/bluez/client/display.c
external/bluetooth/bluez/client/display.c: In function 'rl_hexdump':
external/bluetooth/bluez/client/display.c:81:3: warning: implicit
    declaration of function 'isprint' [-Wimplicit-function-declaration]
   str[(i % 16) + 51] = isprint(buf[i]) ? buf[i] : '.';
   ^
---
 client/display.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/client/display.c b/client/display.c
index 619973c..d85b9d0 100644
--- a/client/display.c
+++ b/client/display.c
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include <stdarg.h>
 #include <stdbool.h>
+#include <ctype.h>
 #include <readline/readline.h>
 
 #include "display.h"
-- 
1.9.3

--
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