summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaechul Lee <jcsing.lee@samsung.com>2021-02-04 12:22:51 +0900
committerJaechul Lee <jcsing.lee@samsung.com>2021-02-04 14:56:03 +0900
commit58ad926b713565a914a1e13c9af2e54e900a8fee (patch)
tree3d840b5c6ac1d4263e515a1806aca8ff6dfeef56
parent4951a4ddc4dab3fd08a77e1f4f86d98edcfeb291 (diff)
downloadaudio-hal-sc7727-58ad926b713565a914a1e13c9af2e54e900a8fee.tar.gz
audio-hal-sc7727-58ad926b713565a914a1e13c9af2e54e900a8fee.tar.bz2
audio-hal-sc7727-58ad926b713565a914a1e13c9af2e54e900a8fee.zip
Fix build warnings
[Version] 0.1.36 [Issue Type] Build Change-Id: I358bb73f220150a5fafe47eadf5274e9fb50ca37 Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
-rw-r--r--hal-backend-audio.c6
-rw-r--r--packaging/audio-hal-sc7727.spec2
-rw-r--r--tizen-audio-volume.c3
3 files changed, 7 insertions, 4 deletions
diff --git a/hal-backend-audio.c b/hal-backend-audio.c
index e3e05f9..60239b9 100644
--- a/hal-backend-audio.c
+++ b/hal-backend-audio.c
@@ -41,12 +41,14 @@ static int audio_sc7727_init(void **data)
return 0;
}
-static void audio_sc7727_exit(void *data)
+static int audio_sc7727_exit(void *data)
{
if (!data)
- return;
+ return -EINVAL;
free(data);
+
+ return 0;
}
hal_backend hal_backend_audio_data = {
diff --git a/packaging/audio-hal-sc7727.spec b/packaging/audio-hal-sc7727.spec
index 41a835b..ce064d2 100644
--- a/packaging/audio-hal-sc7727.spec
+++ b/packaging/audio-hal-sc7727.spec
@@ -1,6 +1,6 @@
Name: audio-hal-sc7727
Summary: TIZEN Audio HAL for SC7727
-Version: 0.1.35
+Version: 0.1.36
Release: 0
Group: System/Libraries
License: Apache-2.0
diff --git a/tizen-audio-volume.c b/tizen-audio-volume.c
index 2a2c0cf..c9577a9 100644
--- a/tizen-audio-volume.c
+++ b/tizen-audio-volume.c
@@ -191,7 +191,8 @@ static audio_return_e __load_volume_value_table_from_ini(audio_hal_t *ah)
const char *table_str = "volumes";
const char *tmp_str = NULL;
const char *gain_str = NULL;
- char *key, *list_str, *token, *ptr = NULL;
+ char *list_str = NULL, *ptr = NULL;
+ char *key, *token;
if (access(VOLUME_INI_TEMP_PATH, F_OK) == 0)
dict = iniparser_load(VOLUME_INI_TEMP_PATH);