Page MenuHomeFreeBSD

syslogd: Simplify property filters
ClosedPublic

Authored by jfree on Aug 8 2023, 3:30 PM.
Tags
None
Referenced Files
F85197722: D41366.diff
Sun, Jun 2, 10:42 PM
Unknown Object (File)
Tue, May 28, 6:59 PM
Unknown Object (File)
Mar 13 2024, 4:41 AM
Unknown Object (File)
Feb 9 2024, 7:38 PM
Unknown Object (File)
Feb 9 2024, 10:32 AM
Unknown Object (File)
Jan 8 2024, 7:30 PM
Unknown Object (File)
Dec 22 2023, 11:35 AM
Unknown Object (File)
Dec 20 2023, 6:59 AM
Subscribers

Details

Summary
  • Use enums for property filter properties and comparisons.
  • Rename property and comparison values.

Diff Detail

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

Event Timeline

Because C enums are integer-sized, this makes struct prop_filter a bit fatter, but that's ok.

usr.sbin/syslogd/syslogd.c
237

FILT_CMP_* now starts from 0 instead of 1, but I think that's fine...

1571

This can be:

default:
    __unreachable();

(FILT_CMP_REGEX is handled above.)

This revision is now accepted and ready to land.Aug 9 2023, 7:21 PM
This revision now requires review to proceed.Aug 10 2023, 11:10 PM
This revision is now accepted and ready to land.Aug 11 2023, 2:50 PM
This revision was automatically updated to reflect the committed changes.