summaryrefslogtreecommitdiff
path: root/src/usernames.c
diff options
context:
space:
mode:
authorJakub Sławiński2005-08-05 21:45:31 +0200
committerJoshua Judson Rosen2014-07-17 21:14:59 +0200
commit43e8714797d40bcf63efab428dcd25f9caf1d52b (patch)
tree796974a873a97f2a44f872f3dd3587508e35aa64 /src/usernames.c
parentv0.7.1 (diff)
downloadapf-43e8714797d40bcf63efab428dcd25f9caf1d52b.tar.gz
v0.7.2
- Added: http proxy basic authorization - Fixed: logging initialization after some value checking - Fixed: auto-reconnect failure when --nossl option is set - Added: auto-reconnect when afserver is not reachable on start - Added: auto-reconnect after normal afserver quit - Added: per user statistics: idle time, amount of downloaded/uploaded bytes and current download/upload rate - Added: support for https proxies - Added: possibility to bind sockets on different interfaces - Fixed: receiving incomplete headers from afclient - Fixed: close user connections by afclient
Diffstat (limited to 'src/usernames.c')
-rw-r--r--src/usernames.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usernames.c b/src/usernames.c
index 194bfa0..175cced 100644
--- a/src/usernames.c
+++ b/src/usernames.c
@@ -25,7 +25,7 @@
int
get_username(RealmT* pointer, int user)
{
- return pointer->contable[user].userid;
+ return ConnectUser_get_userId(pointer->contable[user]);
}
int
@@ -34,7 +34,7 @@ get_usernumber(RealmT* pointer, int userid)
int i;
for (i = 0; i < pointer->usernum; ++i) {
- if (userid == pointer->contable[i].userid) {
+ if (userid == ConnectUser_get_userId(pointer->contable[i])) {
return i;
}
}