aboutsummaryrefslogtreecommitdiff
path: root/libps/ps.h
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-05-09 00:31:07 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-10 03:05:05 +0200
commit84c7d79d29d0bb7146c0b45c7fd028408bb11cd1 (patch)
tree07b4d175f72e70efa9a55aa19a808063c47e0e13 /libps/ps.h
parentcb5ab7708b6b7f9941a9ba914ede153601c5be49 (diff)
downloadhurd-84c7d79d29d0bb7146c0b45c7fd028408bb11cd1.tar.gz
hurd-84c7d79d29d0bb7146c0b45c7fd028408bb11cd1.tar.bz2
hurd-84c7d79d29d0bb7146c0b45c7fd028408bb11cd1.zip
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>
Diffstat (limited to 'libps/ps.h')
-rw-r--r--libps/ps.h2
1 files changed, 1 insertions, 1 deletions
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: */