Garrett D'Amore writes:
> #define MBLKL(mp) ((uintptr_t)(mp)->b_wptr - (uintptr_t)(mp)->b_rptr)
That's one way. The sort of #ifdef lint trick Dan did is another
one.
> Anyone have any thoughts about this? If nobody objects, I'll file a bug
> and probably submit an RTI next week. (I wouldn't mind having a
> volunteer for codereview, either! :-)
Sounds good. And I'd volunteer to review. By the way, I'd suggest at
least a quick scan to see if there are any now-bogus uses of LINTED
that could be yanked. Something like:
$ cd usr/src/uts
$ find . -type f \! -name s.\* -name '*.[ch]' -print | \
xargs nawk '/LINTED/ {flag = 1; next} \
/MBLKL/ && flag {print FILENAME, ": ", $0} {flag = 0}'
I count only 8 of them in 4 files, so it shouldn't be too hard to do
that.
--
James Carlson, Solaris Networking <[EMAIL PROTECTED]>
Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]