policycoreutils: setfiles: make the restore function exclude() non-static

Stuff wants to use it later.  Make it non-static.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Eric Paris 2011-07-10 17:35:24 +02:00
parent 17c577ace7
commit 66564a67cf
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,6 @@ struct edir {
static file_spec_t *fl_head;
static int exclude(const char *file);
static int filespec_add(ino_t ino, const security_context_t con, const char *file);
static int only_changed_user(const char *a, const char *b);
struct restore_opts *r_opts = NULL;
@ -439,7 +438,7 @@ int process_one_realpath(char *name, int recurse)
}
}
static int exclude(const char *file)
int exclude(const char *file)
{
int i = 0;
for (i = 0; i < excludeCtr; i++) {

View File

@ -45,6 +45,7 @@ struct restore_opts {
void restore_init(struct restore_opts *opts);
void restore_finish();
int add_exclude(const char *directory);
int exclude(const char *path);
void remove_exclude(const char *directory);
int process_one_realpath(char *name, int recurse);
int process_glob(char *name, int recurse);