aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2021-08-05 09:46:29 +0100
committerTomasz Kramkowski <tk@the-tk.com>2021-08-05 09:46:29 +0100
commit7567c6d819441900bdffbebdf0b6dd9d3abe6f9b (patch)
tree1e6e2153afa7fa431c76de0f5e8e1f759d0b1135
parentb81ae59630b8ee072fa6a9b6ea0ee2b708f57696 (diff)
downloadpack-7567c6d819441900bdffbebdf0b6dd9d3abe6f9b.tar.gz
pack-7567c6d819441900bdffbebdf0b6dd9d3abe6f9b.tar.xz
pack-7567c6d819441900bdffbebdf0b6dd9d3abe6f9b.zip
unpack.c: don't drop const in void * cast
-rw-r--r--unpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack.c b/unpack.c
index bd58d00..1686cd7 100644
--- a/unpack.c
+++ b/unpack.c
@@ -43,7 +43,7 @@ enum pack_status unpack(const void *buf_, size_t size, const char *fmt, ...)
size_t offset = 0;
va_list ap;
- tr_call("unpack(%p, %zu, %s, ...)", (void *)buf, size, fmt);
+ tr_call("unpack(%p, %zu, %s, ...)", (const void *)buf, size, fmt);
va_start(ap, fmt);