tests/gpgscm: Fix use of pointer.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 15 Sep 2016 00:17:59 +0000 (09:17 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 15 Sep 2016 00:17:59 +0000 (09:17 +0900)
commit68eb5fbd37c31ed7c0c916656131eea7bb58d13d
treeeb384f6d83e3817e2f634c60c98d78305d0d0278
parent9799b5d18f8fd29872b75c4d70d370af2b4e9a89
tests/gpgscm: Fix use of pointer.

* tests/gpgscm/scheme-private.h (struct scheme): Use (void *) for
alloc_seg.
* tests/gpgscm/scheme.c (alloc_cellseg): Use (void *) for cp.  Use
(void *) for coercion of address calculation.

--

In old C language, (char *) means an address.  In modern C, it's
specifically an address with alignment=1.  It's good to use (void *) for
an address, because newer compiler emits warnings.  Note: in this
particular case, it is just a warning and the code is safe against
invalid alignment, though.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
tests/gpgscm/scheme-private.h
tests/gpgscm/scheme.c