summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-11-01 11:30:37 -0400
committerJakob Kaivo <jkk@ung.org>2019-11-01 11:30:37 -0400
commit20c2f7e22d6edc81b6664a91cce72d7cb3a82226 (patch)
treebfa50f367f2b3dd2fba712a9dfa3b825a7554b7d
parent6ff4ec00482f299735276268853ff75311f75091 (diff)
-rw-r--r--chgrp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/chgrp.c b/chgrp.c
index b5bd1ce..2f03fd7 100644
--- a/chgrp.c
+++ b/chgrp.c
@@ -54,7 +54,7 @@ int chgrp(const char *p, const struct stat *st, int typeflag, struct FTW *f)
return 0;
}
-static gid_t strtogid(const char *s)
+static gid_t gid_from_string(const char *s)
{
struct group *grp = getgrnam(s);
if (grp == NULL) {
@@ -68,7 +68,7 @@ static gid_t strtogid(const char *s)
return grp->gr_gid;
}
-int main(int argc, char **argv)
+int main(int argc, char *argv[])
{
int recursive = 0;
@@ -110,7 +110,7 @@ int main(int argc, char **argv)
return 1;
}
- newgid = strtogid(argv[optind++]);
+ newgid = gid_from_string(argv[optind++]);
/* TODO: handle -hHLP */
while (optind < argc) {