summaryrefslogtreecommitdiff
path: root/src/lib/irm.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-02-26 11:08:55 +0100
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-02-26 11:44:38 +0100
commitdff374d5f393a6b4bec4877aa1c35ceb70e82843 (patch)
tree64e0e7804f1ee19834f019478c7199e83512c726 /src/lib/irm.c
parent63633c57b1e2573890fa627dd63f7c79ee5777b8 (diff)
downloadouroboros-dff374d5f393a6b4bec4877aa1c35ceb70e82843.tar.gz
ouroboros-dff374d5f393a6b4bec4877aa1c35ceb70e82843.zip
lib, irmd: Address Dimitri's comments
This addresses several comments Dimitri had on the sockets layer code.
Diffstat (limited to 'src/lib/irm.c')
-rw-r--r--src/lib/irm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/irm.c b/src/lib/irm.c
index 1af8ed2c..2c9b530c 100644
--- a/src/lib/irm.c
+++ b/src/lib/irm.c
@@ -34,7 +34,7 @@ int irm_create_ipcp(rina_name_t name,
struct irm_msg msg;
buffer_t * buf;
- if (!ipcp_type)
+ if (ipcp_type == NULL)
return -1;
sockfd = client_socket_open(IRM_SOCK_PATH);
@@ -46,7 +46,7 @@ int irm_create_ipcp(rina_name_t name,
msg.msgs.create_ipcp.ipcp_type = ipcp_type;
buf = serialize_irm_msg(&msg);
- if (!buf)
+ if (buf == NULL)
return -1;
write(sockfd, buf->data, buf->size);