From dfbfa84d1df5452825ded5500a2e42f6ec64a724 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 25 Aug 2015 08:06:45 +0200 Subject: m + attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsclient/comm.c | 4 ++-- src/libmdsclient/comm.h | 2 +- src/libmdsclient/proto-util.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libmdsclient') diff --git a/src/libmdsclient/comm.c b/src/libmdsclient/comm.c index 1084e8b..b3091fb 100644 --- a/src/libmdsclient/comm.c +++ b/src/libmdsclient/comm.c @@ -90,13 +90,13 @@ int libmds_connection_send(libmds_connection_t* restrict this, const char* messa r = libmds_connection_send_unlocked(this, message, length); saved_errno = errno; - libmds_connection_unlock(this); + (void) libmds_connection_unlock(this); return errno = saved_errno, r; } int libmds_connection_send_unlocked(libmds_connection_t* restrict this, const char* message, size_t length) { - /* TODO */ + return (void) this, (void) message, (void) length, 0; /* TODO */ } diff --git a/src/libmdsclient/comm.h b/src/libmdsclient/comm.h index 8f3f0d9..4a47b2a 100644 --- a/src/libmdsclient/comm.h +++ b/src/libmdsclient/comm.h @@ -150,7 +150,7 @@ int libmds_connection_send_unlocked(libmds_connection_t* restrict this, const ch * will have been set accordingly on error * @throws See pthread_mutex_unlock(3) */ -#define libmds_connection_unlock(this) +#define libmds_connection_unlock(this) \ (errno = pthread_mutex_unlock(&((this)->mutex)), (errno ? 0 : -1)) diff --git a/src/libmdsclient/proto-util.h b/src/libmdsclient/proto-util.h index f381c57..200e0db 100644 --- a/src/libmdsclient/proto-util.h +++ b/src/libmdsclient/proto-util.h @@ -443,7 +443,7 @@ int libmds_compose_v(char** restrict buffer, size_t* restrict buffer_size, size_ */ __attribute__((nonnull(1))) int libmds_next_message_id(uint32_t* restrict message_id, int (*test)(uint32_t message_id, void* data), - void* data) ; + void* data); #endif -- cgit v1.2.3-70-g09d2