summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-03-31 10:26:51 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-03-31 10:26:51 +0200
commitcc4b56b6710624c069642d1a510d0060949fe5b9 (patch)
treed74fd412563152e6df9733cdb41c33ea97655738
parent20f5ff02e455580c6e7129479f3328787b3333ff (diff)
fix bug
Change-Id: I5d905a3f74a18ae2bad8b907b1f4e61c2104117f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-hreq.c1
-rw-r--r--src/websock.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/afb-hreq.c b/src/afb-hreq.c
index bc42bf12..60ff6b01 100644
--- a/src/afb-hreq.c
+++ b/src/afb-hreq.c
@@ -36,7 +36,6 @@ struct hreq_data {
char *value;
};
-
static struct hreq_data *get_data(struct afb_hreq *hreq, const char *key, int create)
{
struct hreq_data *data = hreq->data;
diff --git a/src/websock.c b/src/websock.c
index dc0b5f44..41e47a0a 100644
--- a/src/websock.c
+++ b/src/websock.c
@@ -377,7 +377,7 @@ ssize_t websock_read(struct websock * ws, void *buffer, size_t size)
}
b32 = (uint32_t *) b8;
while (size >= sizeof(uint32_t)) {
- *b32++ ^= m;
+ *b32++ ^= mask;
size -= sizeof(uint32_t);
}
b8 = (uint8_t *) b32;