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)
Thu, Mar 28, 9:36 AM
Unknown Object (File)
Feb 22 2024, 2:01 AM
Unknown Object (File)
Jan 15 2024, 3:09 AM
Unknown Object (File)
Dec 20 2023, 4:19 AM
Unknown Object (File)
Oct 26 2023, 6:46 AM
Unknown Object (File)
Sep 3 2023, 11:56 PM
Unknown Object (File)
Sep 3 2023, 11:53 PM
Unknown Object (File)
Sep 3 2023, 11:53 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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