populate_user_list();
}
+/**
+ * lookup user in user_list.
+ *
+ * \param user: must initially contain the name of the user and is filled
+ * in by this function on success.
+ *
+ * \return 1 on success and < 0 on errors.
+ */
int _get_user(struct _user *user)
{
struct _user *u;
*user = *u;
return 1;
}
- return 0;
+ return -E_BAD_USER;
}
static void init_selector(void)