]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS: Do not use void* in arithmetic
authorJouni Malinen <j@w1.fi>
Sat, 4 May 2013 17:11:16 +0000 (20:11 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 4 May 2013 17:19:45 +0000 (20:19 +0300)
This is a C compiler extension and not needed, so replace with standard
compliant way of calculating the pointer.

Signed-hostap: Jouni Malinen <j@w1.fi>

src/wps/http_client.c

index c6d6c7fdab2af197c58ea6387ce48aa5140ccc40..029001306cbe40c2243c30a34d9f2bc3476ce9cd 100644 (file)
@@ -92,7 +92,7 @@ static void http_client_tx_ready(int sock, void *eloop_ctx, void *sock_ctx)
                   (unsigned long) wpabuf_len(c->req),
                   (unsigned long) wpabuf_len(c->req) - c->req_pos);
 
-       res = send(c->sd, wpabuf_head(c->req) + c->req_pos,
+       res = send(c->sd, wpabuf_head_u8(c->req) + c->req_pos,
                   wpabuf_len(c->req) - c->req_pos, 0);
        if (res < 0) {
                wpa_printf(MSG_DEBUG, "HTTP: Failed to send buffer: %s",