summaryrefslogtreecommitdiff
path: root/src/irmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/irmd')
-rw-r--r--src/irmd/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index ab637789..38e10cc5 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -1936,7 +1936,7 @@ void * irm_flow_cleaner()
pthread_rwlock_rdlock(&instance->state_lock);
- if (&instance->state == IRMD_NULL) {
+ if (instance->state == IRMD_NULL) {
pthread_rwlock_unlock(&instance->state_lock);
return (void *) 0;
}
@@ -2185,8 +2185,8 @@ void * mainloop()
pthread_cleanup_pop(true);
- buffer.size = irm_msg__get_packed_size(&ret_msg);
- if (buffer.size == 0) {
+ buffer.len = irm_msg__get_packed_size(&ret_msg);
+ if (buffer.len == 0) {
LOG_ERR("Failed to send reply message.");
if (apis != NULL)
free(apis);
@@ -2194,7 +2194,7 @@ void * mainloop()
continue;
}
- buffer.data = malloc(buffer.size);
+ buffer.data = malloc(buffer.len);
if (buffer.data == NULL) {
if (apis != NULL)
free(apis);
@@ -2204,7 +2204,7 @@ void * mainloop()
irm_msg__pack(&ret_msg, buffer.data);
- if (write(cli_sockfd, buffer.data, buffer.size) == -1) {
+ if (write(cli_sockfd, buffer.data, buffer.len) == -1) {
free(buffer.data);
if (apis != NULL)
free(apis);