X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-ws-json1.c;h=45e1cdb00dea7750e9830af0388444772d0a67a9;hb=c6380108964e71f533d8c672bb9c217020a95e8d;hp=bdd1286cfdd59384454c933215cb51955c2caf12;hpb=157c652b4bb8eba5692bed2a4bc75650f7ae7622;p=src%2Fapp-framework-binder.git diff --git a/src/afb-ws-json1.c b/src/afb-ws-json1.c index bdd1286c..45e1cdb0 100644 --- a/src/afb-ws-json1.c +++ b/src/afb-ws-json1.c @@ -25,7 +25,7 @@ #include -#include +#include #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;