[PATCH 2/3] tools/btmgmt: Fix compilation warning on Android

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

 



isspace requires ctype.h include.

external/bluetooth/bluez/tools/btmgmt.c: In function 'get_input':
external/bluetooth/bluez/tools/btmgmt.c:834:2: warning: implicit
   declaration of function 'isspace' [-Wimplicit-function-declaration]
  while (len && isspace(buf[len - 1]))
  ^
---
 tools/btmgmt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index 75f64c2..7cf82e2 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -38,6 +38,7 @@
 #include <getopt.h>
 #include <stdbool.h>
 #include <wordexp.h>
+#include <ctype.h>
 
 #include <readline/readline.h>
 #include <readline/history.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