From 84c7d79d29d0bb7146c0b45c7fd028408bb11cd1 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Tue, 9 May 2023 00:31:07 +0300 Subject: libps: Silence a warning GCC was complaining about the mismatch in types between the 'fn' pointer and the function pointers assigned to it. Since fn is meant to be used with different function types, represent it as a 'void *' and not a pointer to any particular function type. Message-Id: <20230508213136.608575-13-bugaevc@gmail.com> --- libps/ps.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libps/ps.h') diff --git a/libps/ps.h b/libps/ps.h index 192847b5..3e59c66a 100644 --- a/libps/ps.h +++ b/libps/ps.h @@ -535,7 +535,7 @@ struct ps_getter /* A function that will get the value; the protocol between this function and its caller is type-dependent. */ - void (*fn) (void); + void *fn; }; /* Access macros: */ -- cgit v1.2.3