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)
Tue, May 12, 6:19 PM
Unknown Object (File)
Tue, May 12, 1:13 AM
Unknown Object (File)
Sun, May 10, 11:32 AM
Unknown Object (File)
Fri, May 8, 8:33 PM
Unknown Object (File)
Thu, May 7, 2:13 AM
Unknown Object (File)
Fri, May 1, 9:04 PM
Unknown Object (File)
Mon, Apr 27, 4:43 PM
Unknown Object (File)
Mon, Apr 27, 1:07 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