From 659b05c3ca8cd8573d4584fc6b557ad12521c011 Mon Sep 17 00:00:00 2001 From: glebius Date: Mon, 11 Oct 2004 07:28:36 +0000 Subject: [PATCH] Assign pointer NULL, not 0. Approved by: julian (mentor) --- sys/net/if_tun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 065f6c9b055a..9b07c3c4a0a4 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -765,7 +765,7 @@ tunwrite(struct cdev *dev, struct uio *uio, int flag) return (ENOBUFS); mlen = MHLEN; - top = 0; + top = NULL; mp = ⊤ while (error == 0 && uio->uio_resid > 0) { m->m_len = min(mlen, uio->uio_resid);