Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2026 13:44:24 +0000
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Cc:        Faraz Vahedi <kfv@kfv.io>
Subject:   git: 64502126e126 - main - mdmfs: Use standard bool definition
Message-ID:  <6a1ae9b8.3098c.2e608972@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by fuz:

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

commit 64502126e126476456ca2aa60b4f798ed2d0b879
Author:     Faraz Vahedi <kfv@kfv.io>
AuthorDate: 2026-05-26 06:06:52 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-05-30 13:43:51 +0000

    mdmfs: Use standard bool definition
    
    Include `<stdbool.h>` instead of defining a local bool enum.
    This avoids duplicating a standard type name and keeps the
    source compatible with headers that provide bool as a macro,
    or in case of C23 that compilers provide it as keyword.
    
    Signed-off-by:  Faraz Vahedi <kfv@kfv.io>
    Reviewed by:    fuz
    MFC after:      1 month
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/2203
---
 sbin/mdmfs/mdmfs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sbin/mdmfs/mdmfs.c b/sbin/mdmfs/mdmfs.c
index cd0bf7c96143..c86a098a892d 100644
--- a/sbin/mdmfs/mdmfs.c
+++ b/sbin/mdmfs/mdmfs.c
@@ -49,14 +49,13 @@
 #include <paths.h>
 #include <pwd.h>
 #include <stdarg.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
 #include <unistd.h>
 
-typedef enum { false, true } bool;
-
 struct mtpt_info {
 	uid_t		 mi_uid;
 	bool		 mi_have_uid;


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1ae9b8.3098c.2e608972>