Page MenuHomeFreeBSD

tftpd: Simplify packet drop macro
ClosedPublic

Authored by des on May 18 2026, 9:35 PM.
Tags
None
Referenced Files
F174387557: D57076.id178411.diff
Fri, Oct 2, 8:43 PM
F174319930: D57076.id178046.diff
Fri, Oct 2, 8:52 AM
F174304957: D57076.id178044.diff
Fri, Oct 2, 5:26 AM
Unknown Object (File)
Thu, Oct 1, 3:37 PM
Unknown Object (File)
Wed, Sep 30, 4:40 PM
Unknown Object (File)
Tue, Sep 29, 5:22 PM
Unknown Object (File)
Tue, Sep 29, 5:20 PM
Unknown Object (File)
Tue, Sep 29, 3:49 PM
Subscribers

Details

Summary

The first argument is always the function name, for which we can simply
use func. This leaves only the optional return value, so we can use
a single variadic macro instead of two nearly-identical copies.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable