#include <stdint.h>
#include <string.h>
#include <glib.h>
-#include <dbus/dbus-glib.h>
-#include <dbus/dbus.h>
#include "bluetooth-api.h"
}
buf = g_malloc0(20);
- /* Fix : NULL_RETURNS */
- if (buf == NULL) {
- close(fd);
- return NULL;
- }
if (read(fd, buf, 17) < 17) {
perror("Can't load firmware");
addr = get_bd_from_file(BD_ADDR_FILE);
if (addr) {
- TC_PRT("Remote bd adress from file: %s", addr);
+ TC_PRT("Remote bd address from file: %s", addr);
convert_addr_string_to_addr_type(device_address, addr);
g_free(addr);
return;
unsigned int len = 0;
int test_id;
- if (g_io_channel_read_chars(chan, buf, sizeof(buf),
+ if (g_io_channel_read_chars(chan, buf, sizeof(buf),
&len, NULL) == G_IO_STATUS_ERROR) {
printf("IO Channel read error");
return FALSE;