From cf4acabf3e8993fe59840aaa6717d65f2ca95fc9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 11 Mar 2011 15:04:39 -0800 Subject: [PATCH] inet_diag: fixup broken assertion Oops, strings are always true :x --- ext/raindrops/linux_inet_diag.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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?!"); } } -- 2.11.4.GIT