summaryrefslogtreecommitdiff
path: root/src/chown-core.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-04-27 15:01:12 +0000
committerJim Meyering <jim@meyering.net>2004-04-27 15:01:12 +0000
commit03f9a376a413ed230a801ad2d4ef9cea940c6640 (patch)
tree71f23f22c355c27e46ce82aea2063299400f3699 /src/chown-core.c
parentb34611fd0f2b8116739017734755de42e3476de7 (diff)
downloadcoreutils-03f9a376a413ed230a801ad2d4ef9cea940c6640.tar.xz
(chopt_init, chopt_free, gid_to_name, uid_to_name, chown_files):
Add `extern' keyword.
Diffstat (limited to 'src/chown-core.c')
-rw-r--r--src/chown-core.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chown-core.c b/src/chown-core.c
index ca52bea39..5df0c1860 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,