Provide efficient store/unstore for afb_req
[src/app-framework-binder.git] / src / afb-ws-json1.c
index bdd1286..45e1cdb 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <json-c/json.h>
 
-#include <afb/afb-req-itf.h>
+#include <afb/afb-event-itf.h>
 
 #include "afb-wsj1.h"
 #include "afb-ws-json1.h"
@@ -37,7 +37,6 @@
 #include "afb-xreq.h"
 #include "afb-context.h"
 #include "afb-evt.h"
-#include "afb-subcall.h"
 #include "verbose.h"
 
 /* predeclaration of structures */
@@ -130,8 +129,6 @@ struct afb_ws_json1 *afb_ws_json1_create(int fd, struct afb_apiset *apiset, stru
                goto error4;
 
        result->cred = afb_cred_create_for_socket(fd);
-       if (!result->cred)
-               result->cred = afb_cred_current();
        result->apiset = afb_apiset_addref(apiset);
        return result;