summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-28 13:45:34 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-28 13:45:34 +0200
commit12b1d87e8d1ab680bafe30b3efec146f2b19838d (patch)
treef5502cfc365583ee6e1ae14cb370a8f2a6e6c867 /src
parentc7af5a0a0fabbd70ecadafb75cf7d8c0a9b9a9ed (diff)
downloadcmumble-12b1d87e8d1ab680bafe30b3efec146f2b19838d.tar.gz
cmumble-12b1d87e8d1ab680bafe30b3efec146f2b19838d.tar.bz2
cmumble-12b1d87e8d1ab680bafe30b3efec146f2b19838d.zip
find_user: Match against session id
Diffstat (limited to 'src')
-rw-r--r--src/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index dab7b54..11eaf1a 100644
--- a/src/util.h
+++ b/src/util.h
@@ -11,7 +11,7 @@ static inline struct cmumble_user *
find_user(struct cmumble_context *ctx, uint32_t session)
{
return cmumble_find_by_id(ctx->users,
- G_STRUCT_OFFSET(struct cmumble_user, id),
+ G_STRUCT_OFFSET(struct cmumble_user, session),
session);
}