Mailing List Archive

[master] 9a20cdfd3 Fix (struct vpi_ii).p type
commit 9a20cdfd3fa6dac117b523082116c804fcca6332
Author: Nils Goroll <nils.goroll@uplex.de>
Date: Wed Nov 3 16:05:33 2021 +0100

Fix (struct vpi_ii).p type

It needs to be a generic pointer pointer, because it is initialized as
a pointer to a pointer to an arbitrary struct, yet (void **) is can not
be dereferenced.

Right now, the instance info is not used, but this might change.

diff --git a/include/vcc_interface.h b/include/vcc_interface.h
index 8c81bddc0..c1a74fc37 100644
--- a/include/vcc_interface.h
+++ b/include/vcc_interface.h
@@ -75,7 +75,7 @@ void VPI_acl_log(VRT_CTX, const char *);

/* vmod object instance info */
struct vpi_ii {
- const void * p;
+ uintptr_t * p;
const char * const name;
};

_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit