Move ui_used() and ui_admissible() from adu.h to adu.c.
authorAndre Noll <maan@systemlinux.org>
Sun, 1 Jun 2008 18:08:32 +0000 (20:08 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 1 Jun 2008 18:08:32 +0000 (20:08 +0200)
They are only used there.

adu.c
adu.h

diff --git a/adu.c b/adu.c
index 4c1c62c0d56bb3955dabd1cfb52499d6d6fca4a3..6eb958456ea292d33cf0bb4eba7b6c050a426866 100644 (file)
--- 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 18d9c47c6a3561a2367d5e417b1a466c6180f50b..a6a3892e6c33c5aaf52762d15debdb70b96790ac 100644 (file)
--- 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;
-}