X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwebsock.c;h=04661c11411d8a9596e6c3050c4f989f27e24528;hb=8d322ebdd04d6de2d5649626bbc23aae0d0ed556;hp=9e79559b5a27ab450a1280fd1515bad1fff731a8;hpb=8dff3447cea6df8ab727d9615cd07b3774ccffa0;p=src%2Fapp-framework-binder.git diff --git a/src/websock.c b/src/websock.c index 9e79559b..04661c11 100644 --- a/src/websock.c +++ b/src/websock.c @@ -1,5 +1,5 @@ /* - * Copyright 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; }