From dd689d6a5f07f03bc0f4ffc518eb8bd3cdcee3ca Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 1 Jun 2008 20:08:32 +0200 Subject: [PATCH] Move ui_used() and ui_admissible() from adu.h to adu.c. They are only used there. --- adu.c | 10 ++++++++++ adu.h | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/adu.c b/adu.c index 4c1c62c..6eb9584 100644 --- a/adu.c +++ b/adu.c @@ -40,6 +40,16 @@ static uint32_t uid_hash_table_size; */ static struct user_info *uid_hash_table; +static inline int ui_used(struct user_info *ui) +{ + return ui->flags & UI_FL_SLOT_USED; +} + +static inline int ui_admissible(struct user_info *ui) +{ + return ui->flags & UI_FL_ADMISSIBLE; +} + /** * The table containing the directory names and statistics. */ diff --git a/adu.h b/adu.h index 18d9c47..a6a3892 100644 --- a/adu.h +++ b/adu.h @@ -198,13 +198,3 @@ int com_select(void); /* create.h */ int com_create(void); - -static inline int ui_used(struct user_info *ui) -{ - return ui->flags & UI_FL_SLOT_USED; -} - -static inline int ui_admissible(struct user_info *ui) -{ - return ui->flags & UI_FL_ADMISSIBLE; -} -- 2.39.5