Page MenuHomeFreeBSD

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

Authored by sucanjan_gmail.com on Sun, Aug 11, 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

asomers accepted this revision.Sun, Aug 11, 3:28 PM
This revision is now accepted and ready to land.Sun, Aug 11, 3:28 PM