libselinux: selinux_restorecon: mark local variable static
The variable `dir_xattr_list` is only used inside `selinux_restorecon.c`. selinux_restorecon.c:65:19: warning: no previous extern declaration for non-static variable 'dir_xattr_list' [-Wmissing-variable-declarations] struct dir_xattr *dir_xattr_list; ^ selinux_restorecon.c:65:1: note: declare 'static' if the variable is not intended to be used outside of this translation unit struct dir_xattr *dir_xattr_list; ^ Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
parent
533e9d6ce0
commit
7464272caa
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ static uint64_t fc_count = 0; /* Number of files processed so far */
|
|||
static uint64_t efile_count; /* Estimated total number of files */
|
||||
|
||||
/* Store information on directories with xattr's. */
|
||||
struct dir_xattr *dir_xattr_list;
|
||||
static struct dir_xattr *dir_xattr_list;
|
||||
static struct dir_xattr *dir_xattr_last;
|
||||
|
||||
/* restorecon_flags for passing to restorecon_sb() */
|
||||
|
|
Loading…
Reference in a new issue