[PATCH 1/8] common: fix outdated barebox_set_hostname comment
Ahmad Fatoum
a.fatoum at barebox.org
Thu Aug 14 13:27:58 PDT 2025
We do not allow underscores either now, so bring the comment in line
with what barebox_valid_ldh_char is enforcing.
Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
common/misc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/common/misc.c b/common/misc.c
index af22579af16f..f2c084a0df4b 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -211,8 +211,7 @@ bool barebox_hostname_is_valid(const char *s)
/*
* The hostname is supposed to be the shortname of a board. It should
- * contain only lowercase letters, numbers, '-', '_'. No whitespaces
- * allowed.
+ * contain only letters, numbers, hyphens. No whitespaces allowed.
*/
void barebox_set_hostname(const char *__hostname)
{
--
2.39.5
More information about the barebox
mailing list