The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=87c326e41e1b3163ffd5542e3dfc9f4a05db1e44
commit 87c326e41e1b3163ffd5542e3dfc9f4a05db1e44 Author: kpowkitty <witchikitti...@gmail.com> AuthorDate: 2025-06-26 23:19:06 +0000 Commit: Warner Losh <i...@freebsd.org> CommitDate: 2025-07-23 06:32:40 +0000 libsa: isprint() libsa is missing isprint(). Adding it with the other isfoo() functions. Remove a stray copy from fdt too. Signed-off-by: Kayla Powell (AKA Kat) <kpowki...@freebsd.org> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1740 --- stand/fdt/fdt_loader_cmd.c | 7 ------- stand/libsa/stand.h | 5 +++++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/stand/fdt/fdt_loader_cmd.c b/stand/fdt/fdt_loader_cmd.c index 226812a5d2a6..161c2435c410 100644 --- a/stand/fdt/fdt_loader_cmd.c +++ b/stand/fdt/fdt_loader_cmd.c @@ -1240,13 +1240,6 @@ fdt_cmd_ls(int argc, char *argv[]) return (CMD_OK); } -static __inline int -isprint(int c) -{ - - return (c >= ' ' && c <= 0x7e); -} - static int fdt_isprint(const void *data, int len, int *count) { diff --git a/stand/libsa/stand.h b/stand/libsa/stand.h index 8b7d93074ef2..0e99d8778fa6 100644 --- a/stand/libsa/stand.h +++ b/stand/libsa/stand.h @@ -275,6 +275,11 @@ static __inline int ispunct(int c) (c >= '[' && c <= '`') || (c >= '{' && c <= '~'); } +static __inline int isprint(int c) +{ + return (c >= ' ') && (c <= '~'); +} + static __inline int toupper(int c) { return islower(c) ? c - 'a' + 'A' : c;