Date: Wed, 2 Dec 2009 15:20:31 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/netinet/ipfw ip_dummynet.c Message-ID: <200912021520.nB2FKtNB062072@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
luigi 2009-12-02 15:20:31 UTC
FreeBSD src repository
Modified files:
sys/netinet/ipfw ip_dummynet.c
Log:
SVN rev 200029 on 2009-12-02 15:20:31Z by luigi
small changes for portability and diff reduction wrt/ FreeBSD 7.
No functional differences.
- use the div64() macro to wrap 64 bit divisions
(which almost always are 64 / 32 bits) so they are easier
to handle with compilers or OS that do not have native
support for 64bit divisions;
- use a local variable for p_numbytes even if not strictly
necessary on HEAD, as it reduces diffs with FreeBSD7
- in dummynet_send() check that a tag is present before
dereferencing the pointer.
- add a couple of blank lines for readability near the end of a function
MFC after: 3 days
Revision Changes Path
1.8 +38 -15 src/sys/netinet/ipfw/ip_dummynet.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912021520.nB2FKtNB062072>
