shithub: riscv

Download patch

ref: cff1ab5fdf116183845581953ee4d8e2665770d4
parent: c35027e03deb38af50b6ac5ce26d7c808b7594d5
author: cinap_lenrek <[email protected]>
date: Sun Aug 26 19:05:45 EDT 2018

ip/ipconfig: add missing {} as DEBUG() is a macro

--- a/sys/src/cmd/ip/ipconfig/ipv6.c
+++ b/sys/src/cmd/ip/ipconfig/ipv6.c
@@ -445,11 +445,12 @@
 		pktlen += 8 * llao->len;
 	}
 
-	if(write(fd, rs, pktlen) != pktlen)
+	if(write(fd, rs, pktlen) != pktlen){
 		DEBUG("sendrs: write failed, pkt size %d", pktlen);
-	else
+	} else {
 		DEBUG("sendrs: sent solicitation to %I from %I on %s",
 			rs->dst, rs->src, conf.dev);
+	}
 }
 
 /*