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, Dec 26, 10:14 PM
Unknown Object (File)
Nov 22 2024, 11:27 AM
Unknown Object (File)
Nov 19 2024, 3:47 PM
Unknown Object (File)
Oct 3 2024, 3:09 PM
Unknown Object (File)
Sep 9 2024, 4:48 PM
Unknown Object (File)
Sep 7 2024, 6:34 PM
Unknown Object (File)
Sep 5 2024, 1:58 PM
Unknown Object (File)
Aug 24 2024, 1:19 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