Minor, constify

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2025-12-14 10:00:39 +01:00
parent 7aab3bb421
commit a02760f499
2 changed files with 4 additions and 4 deletions
+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);
+2 -2
View File
@@ -62,8 +62,8 @@ const char *basenm (const char *path);
char *str (char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
int getuser (char *username, char **home);
int getgroup (char *group);
int getuser (const char *username, char **home);
int getgroup (const char *group);
int getcuser (char *buf, size_t len);
int getcgroup (char *buf, size_t len);