Permalink
Browse files

Merge pull request #69 from hintjens/master

Fixed syntax style on some if statements
  • Loading branch information...
2 parents 8086aef + e3da5d7 commit dde4f7ff46f8d1a3efae266c15398312ffff1fea @methodmissing methodmissing committed Aug 19, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/zframe.c
View
@@ -180,18 +180,15 @@ zframe_send (zframe_t **self_p, void *socket, int flags)
if (flags & ZFRAME_REUSE) {
zmq_msg_t copy;
zmq_msg_init (&copy);
- if (zmq_msg_copy (&copy, &self->zmsg)) {
+ if (zmq_msg_copy (&copy, &self->zmsg))
return -1;
- }
- if (zmq_sendmsg (socket, &copy, snd_flags) == -1) {
+ if (zmq_sendmsg (socket, &copy, snd_flags) == -1)
return -1;
- }
zmq_msg_close (&copy);
}
else {
- if (zmq_sendmsg (socket, &self->zmsg, snd_flags) == -1) {
+ if (zmq_sendmsg (socket, &self->zmsg, snd_flags) == -1)
return -1;
- }
zframe_destroy (self_p);
}
}

0 comments on commit dde4f7f

Please sign in to comment.