summaryrefslogtreecommitdiffstats
path: root/srs.h
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-03-31 14:00:26 +0200
committerPaul Kocialkowski <contact@paulk.fr>2013-03-31 14:00:26 +0200
commit6a786474766a71dcfc681d4f642b053b63af411c (patch)
tree163c4a194978ddf49a78d3c65c1741aa7dfdd75a /srs.h
parent64738a0f15ffb1c3c1ebf10dfb2bb6dd6dbcfc70 (diff)
downloadhardware_ril_samsung-ril-6a786474766a71dcfc681d4f642b053b63af411c.zip
hardware_ril_samsung-ril-6a786474766a71dcfc681d4f642b053b63af411c.tar.gz
hardware_ril_samsung-ril-6a786474766a71dcfc681d4f642b053b63af411c.tar.bz2
srs: Refactor code, check for NULL pointers and prevent memory leaks
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'srs.h')
-rw-r--r--srs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/srs.h b/srs.h
index a63b262..4aa932f 100644
--- a/srs.h
+++ b/srs.h
@@ -31,8 +31,8 @@
#include <samsung-ril-socket.h>
-#define SRS_CLIENT_LOCK() pthread_mutex_lock(&client_data->mutex)
-#define SRS_CLIENT_UNLOCK() pthread_mutex_unlock(&client_data->mutex)
+#define SRS_CLIENT_LOCK() pthread_mutex_lock(&srs_client_data->mutex)
+#define SRS_CLIENT_UNLOCK() pthread_mutex_unlock(&srs_client_data->mutex)
struct srs_client_info {
int fd;