Date: Tue, 20 Apr 2004 00:04:47 -0700 (PDT) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net route.c Message-ID: <200404200704.i3K74lfg075196@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
luigi 2004/04/20 00:04:47 PDT FreeBSD src repository Modified files: sys/net route.c Log: Fix the initial check for NULL arguments in rtfree (previously it checked for rt == NULL after dereferencing the pointer). We never check for those events elsewhere, so probably these checks might go away here as well. Slightly simplify (and document) the logic for memory allocation in rt_setgate(). The rest is mostly style changes -- replace 0 with NULL where appropriate, remove the macro SA() that was only used once, remove some useless debugging code in rt_fixchange, explain some odd-looking casts. Revision Changes Path 1.101 +83 -127 src/sys/net/route.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404200704.i3K74lfg075196>