Page MenuHomeFreeBSD

ping6: Remove unnecessary level of indirection from dnsdecode() parameter
ClosedPublic

Authored by jansucan on Aug 11 2019, 7:37 AM.

Details

Summary

Remove unnecessary level of indirection from dnsdecode() parameter

The `sp' pointer doesn't need to be modified in the caller of
dnsdecode().

This fixes -Wcast-qual error (`must have all intermediate pointers
const qualified to be safe') 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

jansucan created this revision.Aug 11 2019, 7:37 AM
asomers accepted this revision.Aug 11 2019, 3:28 PM
This revision is now accepted and ready to land.Aug 11 2019, 3:28 PM