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, Sep 3, 2:06 PM
Unknown Object (File)
Thu, Sep 3, 9:36 AM
Unknown Object (File)
Thu, Sep 3, 9:11 AM
Unknown Object (File)
Thu, Sep 3, 5:28 AM
Unknown Object (File)
Wed, Sep 2, 2:12 PM
Unknown Object (File)
Wed, Sep 2, 1:39 PM
Unknown Object (File)
Tue, Sep 1, 9:17 AM
Unknown Object (File)
Tue, Sep 1, 8:19 AM
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