瀏覽代碼

audit: reduce scope of audit_net_id

audit_net_id isn't used outside kernel/audit.c.  Reduce its scope.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Richard Guy Briggs 11 年之前
父節點
當前提交
c0a8d9b069
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kernel/audit.c

+ 1 - 1
kernel/audit.c

@@ -126,7 +126,7 @@ static atomic_t    audit_lost = ATOMIC_INIT(0);
 
 /* The netlink socket. */
 static struct sock *audit_sock;
-int audit_net_id;
+static int audit_net_id;
 
 /* Hash for inode-based rules */
 struct list_head audit_inode_hash[AUDIT_INODE_BUCKETS];