In tcp_output, change len from platform-dependent long to fixed-length int32_t.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 4443 Build 4494: arc lint + arc unit
Event Timeline
sys/netinet/tcp_output.c | ||
---|---|---|
1307 | Aehm, no; change the format specifier, don't cast! |
sys/netinet/tcp_output.c | ||
---|---|---|
1307 | You're going to see this in several of my reviews. The "right thing" (TM) to do is to use the PRId32 macro. But, I didn't want to do that, since we don't use it anywhere else in the kernel code. But, thinking through this more, an int format specifier should work for this. We don't have platforms with ints less than 32 bits, and aren't likely to get one in the future. I'll get all those reviews updated and resubmit. |