From f3841c4767397acea160d7131ea4996c19714623 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 17 Apr 2017 18:58:19 -0400 Subject: [PATCH] avoid void* += --- src/ioc/db/dbUnitTest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ioc/db/dbUnitTest.c b/src/ioc/db/dbUnitTest.c index 374a3eb51..7764f78a8 100644 --- a/src/ioc/db/dbUnitTest.c +++ b/src/ioc/db/dbUnitTest.c @@ -190,13 +190,13 @@ void testdbVGetFieldEqual(const char* pv, short dbrType, va_list ap) } } -void testdbGetArrFieldEqual(const char* pv, short dbfType, long nRequest, unsigned long cnt, const void *pbuf) +void testdbGetArrFieldEqual(const char* pv, short dbfType, long nRequest, unsigned long cnt, const void *pbufraw) { DBADDR addr; const long vSize = dbValueSize(dbfType); const long nStore = vSize * nRequest; long status; - void *gbuf, *gstore; + char *gbuf, *gstore, *pbuf = pbuf; if(dbNameToAddr(pv, &addr)) { testFail("Missing PV \"%s\"", pv);