git: d4820e1727ec - stable/13 - mac_bsdextended: Remove \n from sysctl descriptions

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Mon, 25 Nov 2024 21:28:15 UTC
The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=d4820e1727ec1897ae265c1f410c2fecede01716

commit d4820e1727ec1897ae265c1f410c2fecede01716
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-11-21 15:22:27 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-11-25 21:28:07 +0000

    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
    
    (cherry picked from commit 6b62e00da4ad0624fce5e6f0b5b39a6f44c8ba60)
    (cherry picked from commit 28092a8bc72e969d3736ff064ad3f1ca7d80ce0b)
---
 sys/security/mac_bsdextended/mac_bsdextended.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/security/mac_bsdextended/mac_bsdextended.c b/sys/security/mac_bsdextended/mac_bsdextended.c
index d143901330a1..95efc537735a 100644
--- a/sys/security/mac_bsdextended/mac_bsdextended.c
+++ b/sys/security/mac_bsdextended/mac_bsdextended.c
@@ -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