Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2026 16:01:47 +0000
From:      Olivier Certner <olce@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 37bc08d5fe99 - main - MAC/do: Constify is_null_or_empty()
Message-ID:  <6a19b86b.33f53.7429bed9@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by olce:

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

commit 37bc08d5fe9933f41574bf477080d729daf19928
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-05-20 11:12:38 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-05-29 15:26:48 +0000

    MAC/do: Constify is_null_or_empty()
    
    Reviewed by:    bapt
    MFC after:      1 month
    Sponsored by:   The FreeBSD Foundation
    Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/38
---
 sys/security/mac_do/mac_do.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/security/mac_do/mac_do.c b/sys/security/mac_do/mac_do.c
index 03569fab87d6..493dcaf66f89 100644
--- a/sys/security/mac_do/mac_do.c
+++ b/sys/security/mac_do/mac_do.c
@@ -397,7 +397,7 @@ new_conf(void)
 }
 
 static bool
-is_null_or_empty(const char *s)
+is_null_or_empty(const char *const s)
 {
 	return (s == NULL || s[0] == '\0');
 }


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a19b86b.33f53.7429bed9>