Page MenuHomeFreeBSD

Fix two mismatches between function declaration and definition.
ClosedPublic

Authored by brooks on Jul 15 2019, 10:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 1, 8:31 PM
Unknown Object (File)
Mon, Nov 24, 7:03 PM
Unknown Object (File)
Sun, Nov 23, 10:37 PM
Unknown Object (File)
Thu, Nov 20, 6:18 PM
Unknown Object (File)
Thu, Nov 20, 6:16 PM
Unknown Object (File)
Thu, Nov 20, 6:15 PM
Unknown Object (File)
Thu, Nov 20, 6:05 PM
Unknown Object (File)
Wed, Nov 19, 5:24 AM
Subscribers

Details

Summary

In both cases, function pointer arguments were inconsistently declared
and the result worked because of C's odd rules around function pointer
(de)references. With a stricter compiler these fail to compile.

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 25357
Build 24010: arc lint + arc unit

Event Timeline

While we should probably just do in amd, these are easy fixes and there's no upstream conflicts to worry about (last am-utils release in 2014 and their git server don't seem to host a repo.

I'd just drop the extra * on the other of the definition/declaration, but I don't know if we have a style(9) preference. Functionally / semantically it looks good.

This revision is now accepted and ready to land.Jul 15 2019, 10:49 PM
brooks retitled this revision from Fix two mismatches between function decleration and definition. to Fix two mismatches between function declaration and definition..Jul 16 2019, 4:02 PM