From: Andre Noll Date: Sun, 1 Jun 2008 18:08:32 +0000 (+0200) Subject: Move ui_used() and ui_admissible() from adu.h to adu.c. X-Git-Tag: v0.0.2~6 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=dd689d6a5f07f03bc0f4ffc518eb8bd3cdcee3ca;p=adu.git Move ui_used() and ui_admissible() from adu.h to adu.c. They are only used there. --- 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; -}