From: Beletti Date: Tue, 19 Nov 2013 02:16:15 +0000 (+0000) Subject: commands/chown: changed to K&R to ANSI style X-Git-Tag: v3.3.0~669 X-Git-Url: http://zhaoyanbai.com/repos/man.dnssec-settime.html?a=commitdiff_plain;h=1f0299ca1fef032c61fd9efd9d97306858562ccc;p=minix.git commands/chown: changed to K&R to ANSI style Change-Id: I6a956e6479b6ebedca74fdd96e44756f00633cc4 --- diff --git a/commands/chown/chown.c b/commands/chown/chown.c index e1b425bc7..1ea90f8c5 100644 --- a/commands/chown/chown.c +++ b/commands/chown/chown.c @@ -36,7 +36,7 @@ char *pgmname, path[PATH_MAX + 1]; uid_t nuid; gid_t ngid; -int main(int argc, char **argv); +int main(int argc, char *argv[]); void do_chown(char *file); void usage(void); @@ -45,9 +45,7 @@ void usage(void); * argument is to take a group id rather than an user id. This allow the * non-Posix "chgrp user:group file". */ -int main(argc, argv) -int argc; -char *argv[]; +int main(int argc, char *argv[]) { char *id, *id2; struct group *grp; @@ -122,8 +120,7 @@ char *argv[]; /* Apply the user/group modification here. */ -void do_chown(file) -char *file; +void do_chown(char *file) { DIR *dirp; struct dirent *entp;