[master] 9a20cdfd3 Fix (struct vpi_ii).p type

Nils Goroll nils.goroll at uplex.de
Wed Nov 3 15:10:08 UTC 2021


commit 9a20cdfd3fa6dac117b523082116c804fcca6332
Author: Nils Goroll <nils.goroll at 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;
 };
 


More information about the varnish-commit mailing list