about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-03-11 15:04:39 -0800
committerEric Wong <normalperson@yhbt.net>2011-03-11 15:04:39 -0800
commitcf4acabf3e8993fe59840aaa6717d65f2ca95fc9 (patch)
tree348d70973ef4b0ab331b27e2cb7d9b7dbff40a7d
parent70041dfa82015119b33d34b46ecbb0a5c45587cf (diff)
downloadraindrops-cf4acabf3e8993fe59840aaa6717d65f2ca95fc9.tar.gz
Oops, strings are always true :x
-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?!");
         }
 }