Skip to content
Snippets Groups Projects
Commit a7889756 authored by Sergey Lyubka's avatar Sergey Lyubka
Browse files

Made qcomm example compile

parent 9ac67770
No related branches found
No related tags found
No related merge requests found
#include <unistd.h>
#include <string.h>
#include "core.h"
static void iterate_callback(struct mg_connection *c, void *param) {
if (c->is_websocket) {
char buf[20];
......@@ -32,7 +36,6 @@ static int handler(struct mg_connection *conn) {
mg_websocket_write(conn, 1, conn->content, conn->content_len);
DBG(("WS msg len: %d", conn->content_len));
return conn->content_len == 4 && !memcmp(conn->content, "exit", 4);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment