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 10, 2:22 PM
Unknown Object (File)
Tue, Sep 8, 5:43 AM
Unknown Object (File)
Sun, Sep 6, 4:15 AM
Unknown Object (File)
Sat, Sep 5, 4:59 PM
Unknown Object (File)
Sat, Sep 5, 9:16 AM
Unknown Object (File)
Sat, Sep 5, 5:44 AM
Unknown Object (File)
Thu, Sep 3, 2:06 PM
Unknown Object (File)
Thu, Sep 3, 9:36 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25786
Build 24358: arc lint + arc unit