diff options
author | Theo Buehler <tb@openbsd.org> | 2023-12-12 23:20:44 +0100 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2023-12-12 23:25:06 +0100 |
commit | 0491aef86c41e9d1de19a64e1780ff82d35ccf54 (patch) | |
tree | 995f6c473e1807bbc14eabe0c1fa0399b4300327 /patches | |
parent | 223bc4e01e283db48693f631852a0f83ea232308 (diff) | |
download | portable-0491aef86c41e9d1de19a64e1780ff82d35ccf54.tar.gz portable-0491aef86c41e9d1de19a64e1780ff82d35ccf54.tar.bz2 portable-0491aef86c41e9d1de19a64e1780ff82d35ccf54.zip |
pthreads.h: avoid undefined behavior
You can't pass a function pointer through a void pointer.
So wrap the pthread callback in a struct.
Fixes #966
Diffstat (limited to 'patches')
0 files changed, 0 insertions, 0 deletions