* src/chown-core.h (chopt_free): Just define away this noop.
* src/chown-core.c (chopt_free): Remove the empty implementation.
chopt->group_name = NULL;
}
-extern void
-chopt_free (struct Chown_option *chopt _GL_UNUSED)
-{
- /* Deliberately do not free chopt->user_name or ->group_name.
- They're not always allocated. */
-}
-
/* Convert the numeric group-id, GID, to a string stored in xmalloc'd memory,
and return it. If there's no corresponding group name, use the decimal
representation of the ID. */
void
chopt_init (struct Chown_option *);
-void chopt_free (struct Chown_option *);
+/* Deliberately do not free chopt->user_name or ->group_name.
+ They're not always allocated. */
+# define chopt_free(chopt)
-char *gid_to_name (gid_t) _GL_ATTRIBUTE_MALLOC;
+char *
+gid_to_name (gid_t) _GL_ATTRIBUTE_MALLOC;
-char *uid_to_name (uid_t) _GL_ATTRIBUTE_MALLOC;
+char *
+uid_to_name (uid_t) _GL_ATTRIBUTE_MALLOC;
bool
chown_files (char **files, int bit_flags,