summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;