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)
Sat, Apr 18, 4:01 AM
Unknown Object (File)
Thu, Apr 16, 6:50 PM
Unknown Object (File)
Thu, Apr 16, 2:17 AM
Unknown Object (File)
Tue, Apr 14, 9:35 AM
Unknown Object (File)
Sat, Apr 11, 9:30 AM
Unknown Object (File)
Fri, Apr 10, 3:48 AM
Unknown Object (File)
Mon, Apr 6, 7:59 AM
Unknown Object (File)
Sun, Apr 5, 5:15 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