cvs commit: src/sys/net route.c
luigi at FreeBSD.org
Tue Apr 20 00:04:48 PDT 2004
luigi 2004/04/20 00:04:47 PDT
FreeBSD src repository
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
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
More information about the cvs-src