]> git.ipfire.org Git - thirdparty/openvpn.git/commit
io_work: convert shift argument to uintptr_t
authorAntonio Quartulli <a@unstable.cc>
Wed, 23 Oct 2024 08:42:08 +0000 (10:42 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 23 Oct 2024 13:14:26 +0000 (15:14 +0200)
commit04c34f81be920ce57c0c886c627057cc12453b85
treed01e87cd981d9b2c0d1c2326038c74a37da731c2
parent490d1324c87446b48462da18cfde1b755c9883e8
io_work: convert shift argument to uintptr_t

Instead of passing the shift argument as pointer, pass
directly its integer value. This will allow the code to
distinguish a shift value from a real object pointer,
like we already do in multi_tcp_process_io().

This change will allow us later to pass an event_arg
object as event handler argument instead of a simple
integer value.

Change-Id: Ib583bf17e35b14aed78fd8217b6e71e8c2b78089
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Gianmarco De Gregori <gianmarco@mandelbit.com>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20241023084208.12317-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29604.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/forward.c