X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-ws-json1.c;h=9e20e7d9051b434635bb92558857844cf294e918;hb=ece754d98ecf9f5b81f5a6e002ee7ea2289a75bb;hp=351a5d0980a72d98f762a26354fc1c93e9be2451;hpb=01576506d6d6fbfdbea9f4a0b17f0655b721c108;p=src%2Fapp-framework-binder.git diff --git a/src/afb-ws-json1.c b/src/afb-ws-json1.c index 351a5d09..9e20e7d9 100644 --- a/src/afb-ws-json1.c +++ b/src/afb-ws-json1.c @@ -129,6 +129,10 @@ static void aws_on_hangup(struct afb_ws_json1 *ws) struct afb_wsreq { + /* + * CAUTION: 'context' field should be the first because there + * is an implicit convertion to struct afb_context + */ struct afb_context context; int refcount; struct afb_ws_json1 *aws;