about summary refs log tree commit homepage
path: root/ext/raindrops/linux_inet_diag.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/raindrops/linux_inet_diag.c')
-rw-r--r--ext/raindrops/linux_inet_diag.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/raindrops/linux_inet_diag.c b/ext/raindrops/linux_inet_diag.c
index 8feded5..89f1ac4 100644
--- a/ext/raindrops/linux_inet_diag.c
+++ b/ext/raindrops/linux_inet_diag.c
@@ -184,10 +184,12 @@ static VALUE diag(void *ptr)
         cond = (struct inet_diag_hostcond *)(op + 1);
         req.r.idiag_family = cond->family;
         req.nlh.nlmsg_seq = seq;
+
         if (sendmsg(fd, &msg, 0) < 0) {
                 err = err_sendmsg;
                 goto out;
         }
+
         prep_recvmsg_buf(args);
 
         while (1) {
@@ -315,7 +317,7 @@ static void gen_bytecode(struct iovec *iov, struct sockaddr_storage *inet)
                 }
                 break;
         default:
-                assert("unsupported address family, could that be IPv7?!");
+                assert(0 && "unsupported address family, could that be IPv7?!");
         }
 }