audit: make functions static

I was doing some namespace checks and found some simple stuff in
audit that could be cleaned up. Make some functions static, and
put const on make_reply payload arg.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Stephen Hemminger
2010-10-20 17:23:50 -07:00
committed by Al Viro
parent d29be158a6
commit b8800aa5d9
3 changed files with 6 additions and 9 deletions

View File

@@ -60,7 +60,7 @@ struct audit_parent {
};
/* fsnotify handle. */
struct fsnotify_group *audit_watch_group;
static struct fsnotify_group *audit_watch_group;
/* fsnotify events we care about. */
#define AUDIT_FS_WATCH (FS_MOVE | FS_CREATE | FS_DELETE | FS_DELETE_SELF |\
@@ -123,7 +123,7 @@ void audit_put_watch(struct audit_watch *watch)
}
}
void audit_remove_watch(struct audit_watch *watch)
static void audit_remove_watch(struct audit_watch *watch)
{
list_del(&watch->wlist);
audit_put_parent(watch->parent);