void pointer for char pointer in example.c
andrewhodel opened this issue · 1 comments
andrewhodel commented
https://github.com/zhaojh329/libuwsc/blob/master/example/example.c#L67
static void uwsc_onmessage(struct uwsc_client *cl,
void *data, size_t len, bool binary)
{
Why is data a void pointer not a char pointer?
andrewhodel commented
Or a uint8_t or just a char?
I get this error now, that I have never seen before so I am going to see if it goes away with a void pointer.
writev(2, [{iov_base="(pgrmc:1440) onerror:"..., iov_len=46}, {iov_base=NULL, iov_len=0}], 2(pgrm.c:1440) onerror:1: read error
Also a dmesg entry:
do_page_fault(): sending SIGSEGV to pgrm for invalid write access to 00000000