X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=server.c;h=b7334fc52c434a5c9cc69eb3f6fa3dcf8769e18c;hb=a27ec6094608c05a9f87e445902c29d15ca11547;hp=2b5971474c1b0f6ec7e55e775ed290680ce36f0d;hpb=f269333700038603703ec79c909d514bee731faf;p=paraslash.git diff --git a/server.c b/server.c index 2b597147..b7334fc5 100644 --- 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)