diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-12-09 15:36:37 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-12-09 15:36:37 +0000 |
commit | 58d4a908e52cd66d54fccda2b5a47a40f4f52e60 (patch) | |
tree | 703c61ec3894064e52ea33b0b76a7dadcce3348d /libexec | |
parent | df6fd03f43915e89c9e2348e6bdeee72b38fb7ed (diff) |
avoid void arithmetic. from david carlier
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ld.so/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/ld.so/util.c b/libexec/ld.so/util.c index ef86abb9ef8..d70b1a4b304 100644 --- a/libexec/ld.so/util.c +++ b/libexec/ld.so/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.35 2014/07/14 03:54:50 deraadt Exp $ */ +/* $OpenBSD: util.c,v 1.36 2014/12/09 15:36:36 tedu Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -69,8 +69,9 @@ _dl_strdup(const char *orig) } void -_dl_randombuf(void *buf, size_t buflen) +_dl_randombuf(void *v, size_t buflen) { + char *buf = v; size_t chunk; while (buflen != 0) { |