]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - server.c
switch to the in-memory user list
[paraslash.git] / server.c
index 2b5971474c1b0f6ec7e55e775ed290680ce36f0d..b7334fc52c434a5c9cc69eb3f6fa3dcf8769e18c 100644 (file)
--- a/server.c
+++ b/server.c
@@ -360,6 +360,14 @@ static void init_user_list(void)
        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;
@@ -369,7 +377,7 @@ int _get_user(struct _user *user)
                *user = *u;
                return 1;
        }
-       return 0;
+       return -E_BAD_USER;
 }
 
 static void init_selector(void)