summaryrefslogtreecommitdiff
path: root/chgrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'chgrp.c')
-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) {