git: kernel: Clean up gptinit() in subr_diskgpt.c

Aaron LI aly at crater.dragonflybsd.org
Wed Feb 18 05:49:13 PST 2026


commit de7dfb6f5b614e59a876df36ab365d6045822913
Author: Aaron LI <aly at aaronly.me>
Date:   Thu May 15 19:18:39 2025 +0800

    kernel: Clean up gptinit() in subr_diskgpt.c
    
    * Define 'MAX_GPT_ENTRIES' to avoid the magic number 128.
    * Use 'sizeof(struct gpt_ent)' to avoid another magic number 128.

Summary of changes:
 sys/kern/subr_diskgpt.c | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/de7dfb6f5b614e59a876df36ab365d6045822913


-- 
DragonFly BSD source repository


More information about the Commits mailing list