From: Jim Meyering Date: Tue, 27 Apr 2004 15:01:12 +0000 (+0000) Subject: (chopt_init, chopt_free, gid_to_name, uid_to_name, chown_files): X-Git-Tag: v5.3.0~1664 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03f9a376a413ed230a801ad2d4ef9cea940c6640;p=thirdparty%2Fcoreutils.git (chopt_init, chopt_free, gid_to_name, uid_to_name, chown_files): Add `extern' keyword. --- diff --git a/src/chown-core.c b/src/chown-core.c index ca52bea396..5df0c1860a 100644 --- a/src/chown-core.c +++ b/src/chown-core.c @@ -40,7 +40,7 @@ struct group *getgrnam (); struct group *getgrgid (); #endif -void +extern void chopt_init (struct Chown_option *chopt) { chopt->verbosity = V_off; @@ -52,7 +52,7 @@ chopt_init (struct Chown_option *chopt) chopt->group_name = 0; } -void +extern void chopt_free (struct Chown_option *chopt) { /* Deliberately do not free chopt->user_name or ->group_name. @@ -81,7 +81,7 @@ uint_to_string (unsigned int n) and return it. If there's no corresponding group name, use the decimal representation of the ID. */ -char * +extern char * gid_to_name (gid_t gid) { struct group *grp = getgrgid (gid); @@ -92,7 +92,7 @@ gid_to_name (gid_t gid) and return it. If there's no corresponding user name, use the decimal representation of the ID. */ -char * +extern char * uid_to_name (uid_t uid) { struct passwd *pwd = getpwuid (uid); @@ -303,7 +303,7 @@ change_file_owner (FTS *fts, FTSENT *ent, If REQUIRED_UID and/or REQUIRED_GID is not -1, then change only files with user ID and group ID that match the non-(-1) value(s). Return nonzero upon error, zero otherwise. */ -int +extern int chown_files (char **files, int bit_flags, uid_t uid, gid_t gid, uid_t required_uid, gid_t required_gid,