Page MenuHomeFreeBSD

ping: Make in_cksum() operate on u_char buffer
ClosedPublic

Authored by sucanjan_gmail.com on Wed, Aug 14, 7:41 AM.

Details

Summary

Make in_cksum() operate on u_char buffer

This fixes -Wcast-align errors for in_cksum() calls when compiled with
WARNS=6.

Submitted by: Ján Sučan <sucanjan@gmail.com>
Sponsored by: Google, inc. (Google Summer of Code 2019)

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

asomers accepted this revision.Wed, Aug 14, 4:54 PM
This revision is now accepted and ready to land.Wed, Aug 14, 4:54 PM
This revision was automatically updated to reflect the committed changes.