sound-player: Use pa_cstrerror instead of strerror 03/61303/2 accepted/tizen/common/20160307.163107 accepted/tizen/ivi/20160307.111006 accepted/tizen/mobile/20160307.110918 accepted/tizen/tv/20160307.110933 accepted/tizen/wearable/20160307.110949 submit/tizen/20160307.083843
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 7 Mar 2016 08:07:05 +0000 (17:07 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 7 Mar 2016 08:24:53 +0000 (17:24 +0900)
[Version] 5.0.34
[Profile] Common
[Issue Type] svace issue

Change-Id: Iabe458a3683d304fef988b9d8164dd04b197e442

packaging/pulseaudio-modules-tizen.spec
src/module-sound-player.c

index 2995797..51269e8 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.33
+Version:          5.0.34
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index 761ca21..0a699f0 100644 (file)
@@ -429,7 +429,7 @@ static int init_ipc(struct userdata *u) {
 
     pre_mask = umask(0);
     if (mknod(KEYTONE_PATH, S_IFIFO|0660, 0) < 0)
-        pa_log_warn("mknod failed. errno=[%d][%s]", errno, strerror(errno));
+        pa_log_warn("mknod failed. errno=[%d][%s]", errno, pa_cstrerror(errno));
 
     umask(pre_mask);
 
@@ -444,11 +444,11 @@ static int init_ipc(struct userdata *u) {
 
     /* change access mode so group can use keytone pipe */
     if (fchmod(u->fd, 0666) == -1)
-        pa_log_warn("Changing keytone access mode is failed. errno=[%d][%s]", errno, strerror(errno));
+        pa_log_warn("Changing keytone access mode is failed. errno=[%d][%s]", errno, pa_cstrerror(errno));
 
     /* change group due to security request */
     if (fchown(u->fd, -1, KEYTONE_GROUP) == -1)
-        pa_log_warn("Changing keytone group is failed. errno=[%d][%s]", errno, strerror(errno));
+        pa_log_warn("Changing keytone group is failed. errno=[%d][%s]", errno, pa_cstrerror(errno));
 
     u->io = u->module->core->mainloop->io_new(u->module->core->mainloop, u->fd, PA_IO_EVENT_INPUT|PA_IO_EVENT_HANGUP, io_event_callback, u);