Minor, constify

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2025-12-14 10:00:39 +01:00
1 parent 7aab3bb421
commit a02760f499
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -180,7 +180,7 @@ char *str(char *fmt, ...)
return buf;
}
int getuser(char *username, char **home)
int getuser(const char *username, char **home)
{
#ifdef ENABLE_STATIC
if (home)
@@ -198,7 +198,7 @@ int getuser(char *username, char **home)
#endif
}
int getgroup(char *group)
int getgroup(const char *group)
{
#ifdef ENABLE_STATIC
return fgetint("/etc/group", "x:\n", group);