Fix: Bluez multiple build Fail issues.
authorhimanshu <h.himanshu@samsung.com>
Mon, 10 Feb 2020 08:46:10 +0000 (14:16 +0530)
committerhimanshu <h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:58:20 +0000 (14:28 +0530)
Change-Id: Ib8d6e774f9526cf21db1d9de1d26b4dabd0bf9a9
Signed-off-by: himanshu <h.himanshu@samsung.com>
profiles/audio/a2dp.c
src/main.c
src/shared/shell.c

index edceef0..ad9e956 100644 (file)
@@ -27,8 +27,6 @@
 #include <config.h>
 #endif
 
-#define _GNU_SOURCE
-
 #include <stdlib.h>
 #include <stdio.h>
 #include <errno.h>
@@ -2669,7 +2667,7 @@ static struct queue *a2dp_find_eps(struct avdtp *session, GSList *list,
 #endif
 
        struct a2dp_channel *chan = find_channel(session);
-       struct queue *seps;
+       struct queue *seps = NULL;
 
        for (; list; list = list->next) {
                struct a2dp_sep *sep = list->data;
@@ -2741,7 +2739,7 @@ static struct queue *a2dp_select_eps(struct avdtp *session, uint8_t type,
                                        const char *sender)
 {
        struct a2dp_server *server;
-       struct a2dp_sep *seps;
+       struct queue *seps;
        GSList *l;
 
        server = find_server(servers, avdtp_get_adapter(session));
index 76f8006..b98a49d 100755 (executable)
@@ -765,7 +765,7 @@ int main(int argc, char *argv[])
        mainloop_run_with_signal(signal_callback, NULL);
 
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
-       sd_notify(0, "STOPPING=1");
+       mainloop_sd_notify("STOPPING=1");
 #endif
 
        mainloop_sd_notify("STATUS=Quitting");
index 6074f61..ef1188b 100644 (file)
@@ -604,7 +604,6 @@ void bt_shell_prompt_input(const char *label, const char *msg,
                        bt_shell_prompt_input_func func, void *user_data)
 {
        char *str;
-       int err;
 
        if (!data.init || data.mode)
                return;