diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-03-31 14:00:26 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-03-31 14:00:26 +0200 |
commit | 6a786474766a71dcfc681d4f642b053b63af411c (patch) | |
tree | 163c4a194978ddf49a78d3c65c1741aa7dfdd75a /srs.h | |
parent | 64738a0f15ffb1c3c1ebf10dfb2bb6dd6dbcfc70 (diff) | |
download | hardware_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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |