From: Jouni Malinen Date: Sat, 4 May 2013 17:11:16 +0000 (+0300) Subject: WPS: Do not use void* in arithmetic X-Git-Tag: aosp-kk-from-upstream~307 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11e5a49c282932cb3f92895ade1ee44d4f4d5fca;p=thirdparty%2Fhostap.git WPS: Do not use void* in arithmetic This is a C compiler extension and not needed, so replace with standard compliant way of calculating the pointer. Signed-hostap: Jouni Malinen --- diff --git a/src/wps/http_client.c b/src/wps/http_client.c index c6d6c7fda..029001306 100644 --- a/src/wps/http_client.c +++ b/src/wps/http_client.c @@ -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",