libelf: gelf_newehdr and gelf_newehdr should return void *.
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Tue, 11 Oct 2016 14:12:11 +0000 (23:12 +0900)
committerMark Wielaard <mjw@redhat.com>
Wed, 7 Dec 2016 14:19:08 +0000 (15:19 +0100)
commit0d0f8450ffc6135c0938308254f378ac79612e75
treee967f06086c4bfa900658c703b0b5f6fe7e01df2
parentee225020a880e41cd4007af09ae488bc9cf1a536
libelf: gelf_newehdr and gelf_newehdr should return void *.

unsigned long int is not always capable to have pointer in some cases
(LLP64, for example). Return a void pointer instead. Other libelf
implementations will also make this change (or already have).
Also update the documentation to state what is created and that NULL
is returned on error (don't document that the returned value is a
pointer to the actual header created).

Signed-off-by: Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
libelf/ChangeLog
libelf/gelf.h
libelf/gelf_newehdr.c
libelf/gelf_newphdr.c