Page MenuHomeFreeBSD

Put proper prototypes in tcpd.h
ClosedPublic

Authored by dim on Jan 5 2017, 8:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 8:36 PM
Unknown Object (File)
Tue, Apr 2, 7:42 PM
Unknown Object (File)
Tue, Apr 2, 5:58 PM
Unknown Object (File)
Mar 10 2024, 12:21 PM
Unknown Object (File)
Mar 10 2024, 12:21 PM
Unknown Object (File)
Mar 10 2024, 12:21 PM
Unknown Object (File)
Mar 10 2024, 12:21 PM
Unknown Object (File)
Mar 7 2024, 6:57 PM
Subscribers

Details

Summary

Clang 4.0.0 complains about tcpd.h's not-really-prototypes, e.g.:

/usr/include/tcpd.h:75:24: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
extern int hosts_access();              /* access control */
                       ^

Add prototypes using __P, since that is what was done in other
tcpwrapper headers.

While here, garbage collect the incompatible rfc931() function from
scaffold.c, as it is never used.

Diff Detail

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

Event Timeline

dim retitled this revision from to Put proper prototypes in tcpd.h.
dim updated this object.
dim edited the test plan for this revision. (Show Details)
dim added reviewers: emaste, pfg.

I really think we shouldn't bother with __P(), it's an anachronism that shouldn't persist. It's only in tli-sequent.h now I think? I'm happy to clean it out of there.

dim edited edge metadata.

Ditch __P and use regular prototypes.

emaste edited edge metadata.
This revision is now accepted and ready to land.Jan 5 2017, 8:27 PM
This revision was automatically updated to reflect the committed changes.