summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2016-08-31 22:42:29 +0000
committerderaadt <deraadt@openbsd.org>2016-08-31 22:42:29 +0000
commita725b59583c89052093bddc6846a9cb6ee0eda22 (patch)
tree8590b5b4ce7b3c1797ac3381a6344d4ac692500b
parentwhitespace cleanup (diff)
downloadwireguard-openbsd-a725b59583c89052093bddc6846a9cb6ee0eda22.tar.xz
wireguard-openbsd-a725b59583c89052093bddc6846a9cb6ee0eda22.zip
avoid arith on void *, by using char *
-rw-r--r--usr.sbin/acme-client/http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/acme-client/http.c b/usr.sbin/acme-client/http.c
index 8838af44c2c..b173dc0fc2a 100644
--- a/usr.sbin/acme-client/http.c
+++ b/usr.sbin/acme-client/http.c
@@ -1,4 +1,4 @@
-/* $Id: http.c,v 1.1 2016/08/31 22:01:42 florian Exp $ */
+/* $Id: http.c,v 1.2 2016/08/31 22:42:29 deraadt Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -206,7 +206,7 @@ http_read(char *buf, size_t sz, const struct http *http)
}
static int
-http_write(const void *buf, size_t sz, const struct http *http)
+http_write(const char *buf, size_t sz, const struct http *http)
{
ssize_t ssz, xfer;
@@ -215,7 +215,7 @@ http_write(const void *buf, size_t sz, const struct http *http)
if ((ssz = http->writer(buf, sz, http)) < 0)
return(-1);
sz -= ssz;
- buf += ssz;
+ buf += (size_t)ssz;
}
return(xfer);
}