mac_bsdextended: Remove \n from sysctl descriptions

sysctl(8) prints a newline after the description; the description should
not end with one itself.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2024-11-21 10:22:27 -05:00
parent 7d929a4445
commit 6b62e00da4

View File

@ -88,11 +88,11 @@ static int rule_slots = 0;
static int rule_version = MB_VERSION;
SYSCTL_INT(_security_mac_bsdextended, OID_AUTO, rule_count, CTLFLAG_RD,
&rule_count, 0, "Number of defined rules\n");
&rule_count, 0, "Number of defined rules");
SYSCTL_INT(_security_mac_bsdextended, OID_AUTO, rule_slots, CTLFLAG_RD,
&rule_slots, 0, "Number of used rule slots\n");
&rule_slots, 0, "Number of used rule slots");
SYSCTL_INT(_security_mac_bsdextended, OID_AUTO, rule_version, CTLFLAG_RD,
&rule_version, 0, "Version number for API\n");
&rule_version, 0, "Version number for API");
/*
* This is just used for logging purposes, eventually we would like to log