From ece754d98ecf9f5b81f5a6e002ee7ea2289a75bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Tue, 24 May 2016 17:19:46 +0200 Subject: [PATCH] improves comments MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I6ddde79307b40c33ffd0208fe72ef84626c47cac Signed-off-by: José Bollo --- src/afb-hreq.h | 4 ++++ src/afb-ws-json1.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/afb-hreq.h b/src/afb-hreq.h index d4041d76..8e12b62d 100644 --- a/src/afb-hreq.h +++ b/src/afb-hreq.h @@ -23,6 +23,10 @@ struct hreq_data; struct afb_hsrv; struct afb_hreq { + /* + * 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_hsrv *hsrv; 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; -- 2.16.6