Page MenuHomeFreeBSD

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

Authored by jansucan on Aug 11 2019, 7:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 16, 7:30 PM
Unknown Object (File)
Thu, Oct 16, 7:30 PM
Unknown Object (File)
Thu, Oct 16, 7:30 PM
Unknown Object (File)
Thu, Oct 16, 9:30 AM
Unknown Object (File)
Thu, Oct 16, 12:43 AM
Unknown Object (File)
Mon, Oct 6, 8:13 AM
Unknown Object (File)
Fri, Oct 3, 10:53 AM
Unknown Object (File)
Thu, Oct 2, 6:39 PM
Subscribers

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 - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable