kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 9fa9fd7402e345d3cd34b6753d80c3446f7b132a
parent acc34e2d51beda13e5bc4c5047b54cbedd5b5ac0
Author: Joris Vink <joris@coders.se>
Date:   Mon, 26 Aug 2013 08:52:56 +0200

remove useless casts

Diffstat:
src/http.c | 2+-
src/utils.c | 3+--
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/http.c b/src/http.c @@ -274,7 +274,7 @@ http_response(struct http_request *req, int status, u_int8_t *d, u_int32_t len) hdr->header, hdr->value); } - kore_buf_append(buf, (u_int8_t *)"\r\n", 2); + kore_buf_append(buf, "\r\n", 2); htext = kore_buf_release(buf, &hlen); net_send_queue(req->owner, htext, hlen, 0, NULL, NULL); kore_mem_free(htext); diff --git a/src/utils.c b/src/utils.c @@ -285,8 +285,7 @@ kore_base64_encode(u_int8_t *data, u_int32_t len, char **out) if (idx >= len && i < padding) break; - kore_buf_append(res, - (u_int8_t *)&(b64table[n]), 1); + kore_buf_append(res, &(b64table[n]), 1); } b = 0;