X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwebsock.c;h=04661c11411d8a9596e6c3050c4f989f27e24528;hb=41618d081d650f9cc105034bfa37d3b861663db7;hp=1b886c1bdfa1fc49c572205103379158e241a567;hpb=c7e9786d408f13d8f8f43c6b68da916bbb1ed5f3;p=src%2Fapp-framework-binder.git diff --git a/src/websock.c b/src/websock.c index 1b886c1b..04661c11 100644 --- a/src/websock.c +++ b/src/websock.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 "IoT.bzh" + * Copyright (C) 2016, 2017 "IoT.bzh" * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -537,7 +537,7 @@ int websock_drop(struct websock *ws) char buffer[8000]; while (ws->length) - if (ws_read(ws, buffer, sizeof buffer) < 0) + if (websock_read(ws, buffer, sizeof buffer) < 0) return -1; return 0; }