From: Andre Date: Wed, 1 Nov 2006 13:20:15 +0000 (+0100) Subject: rename get_user() to lookup_user() X-Git-Tag: v0.2.15~126^2~3 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=a4265e19f9472cd6fd9ab677e5dff671ebdb41c3;p=paraslash.git rename get_user() to lookup_user() --- diff --git a/command.c b/command.c index 5da5833b..f096edcc 100644 --- a/command.c +++ b/command.c @@ -1062,7 +1062,7 @@ int handle_connect(int fd, struct sockaddr_in *addr) } PARA_DEBUG_LOG("received %s request for user %s\n", use_rc4? "rc4" : "auth", u.name); - if ((ret = get_user(&u)) < 0) + if ((ret = lookup_user(&u)) < 0) goto err_out; if (!ret) { /* user not found */ PARA_WARNING_LOG("auth request for unknown user %s\n", u.name); diff --git a/user_list.c b/user_list.c index 54e27caa..abd47e18 100644 --- a/user_list.c +++ b/user_list.c @@ -119,7 +119,7 @@ void init_user_list(char *user_list_file) * * \return 1 on success and < 0 on errors. */ -int get_user(struct user *user) +int lookup_user(struct user *user) { struct user *u; list_for_each_entry(u, &user_list, node) { diff --git a/user_list.h b/user_list.h index 0efa5c55..507ea02c 100644 --- a/user_list.h +++ b/user_list.h @@ -46,4 +46,4 @@ struct user { }; void init_user_list(char *user_list_file); -int get_user(struct user *user); +int lookup_user(struct user *user);