diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-19 16:47:37 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-19 16:47:51 +0100 |
commit | 70b9f135f8400349838df2d682a073a0706245c5 (patch) | |
tree | 3d4ddbe68e902cd94512721fe9eaa58c40883d72 /client.c | |
parent | 4c6ee39cb985e47c88bd65783ff5385a32c4bd3f (diff) |
fix container_of() on ustream callbacks
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -486,14 +486,14 @@ void uh_client_notify_state(struct client *cl) static void client_ustream_read_cb(struct ustream *s, int bytes) { - struct client *cl = container_of(s, struct client, sfd); + struct client *cl = container_of(s, struct client, sfd.stream); uh_client_read_cb(cl); } static void client_ustream_write_cb(struct ustream *s, int bytes) { - struct client *cl = container_of(s, struct client, sfd); + struct client *cl = container_of(s, struct client, sfd.stream); if (cl->dispatch.write_cb) cl->dispatch.write_cb(cl); @@ -501,7 +501,7 @@ static void client_ustream_write_cb(struct ustream *s, int bytes) static void client_notify_state(struct ustream *s) { - struct client *cl = container_of(s, struct client, sfd); + struct client *cl = container_of(s, struct client, sfd.stream); uh_client_notify_state(cl); } |