improves comments
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 24 May 2016 15:19:46 +0000 (17:19 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 24 May 2016 15:19:46 +0000 (17:19 +0200)
Change-Id: I6ddde79307b40c33ffd0208fe72ef84626c47cac
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-hreq.h
src/afb-ws-json1.c

index d4041d7..8e12b62 100644 (file)
@@ -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;
index 351a5d0..9e20e7d 100644 (file)
@@ -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;