Avoid void* pointer arithmetic
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Wed, 16 Oct 2013 18:16:15 +0000 (21:16 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Wed, 16 Oct 2013 18:16:15 +0000 (21:16 +0300)
commitc89ab921ccfaefe6c4f6a724d01e0df41a1a381f
tree3f3437b98aff2e5cc3feff157f261065f34104db
parent83902f1f1dbc8263a0c3f61be59cd2eb95293c97
Avoid void* pointer arithmetic

* tests/tsexp.c (check_extract_param): Cast void* pointers to char*
before doing arithmetics.
--

GCC was complaining:
tsexp.c: In function ‘check_extract_param’:
tsexp.c:938:44: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
tsexp.c:944:46: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
tsexp.c:955:44: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
tsexp.c:961:46: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
tests/tsexp.c