commands/chown: changed to K&R to ANSI style
Change-Id: I6a956e6479b6ebedca74fdd96e44756f00633cc4
This commit is contained in:
parent
730b47fa27
commit
1f0299ca1f
1 changed files with 3 additions and 6 deletions
|
@ -36,7 +36,7 @@ char *pgmname, path[PATH_MAX + 1];
|
||||||
uid_t nuid;
|
uid_t nuid;
|
||||||
gid_t ngid;
|
gid_t ngid;
|
||||||
|
|
||||||
int main(int argc, char **argv);
|
int main(int argc, char *argv[]);
|
||||||
void do_chown(char *file);
|
void do_chown(char *file);
|
||||||
void usage(void);
|
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
|
* argument is to take a group id rather than an user id. This allow the
|
||||||
* non-Posix "chgrp user:group file".
|
* non-Posix "chgrp user:group file".
|
||||||
*/
|
*/
|
||||||
int main(argc, argv)
|
int main(int argc, char *argv[])
|
||||||
int argc;
|
|
||||||
char *argv[];
|
|
||||||
{
|
{
|
||||||
char *id, *id2;
|
char *id, *id2;
|
||||||
struct group *grp;
|
struct group *grp;
|
||||||
|
@ -122,8 +120,7 @@ char *argv[];
|
||||||
|
|
||||||
/* Apply the user/group modification here.
|
/* Apply the user/group modification here.
|
||||||
*/
|
*/
|
||||||
void do_chown(file)
|
void do_chown(char *file)
|
||||||
char *file;
|
|
||||||
{
|
{
|
||||||
DIR *dirp;
|
DIR *dirp;
|
||||||
struct dirent *entp;
|
struct dirent *entp;
|
||||||
|
|
Loading…
Reference in a new issue