]> git.meshlink.io Git - catta/commitdiff
Fix varargs warning for catta_server_add_service().
authorGuus Sliepen <guus@sliepen.org>
Mon, 23 Sep 2019 12:12:28 +0000 (14:12 +0200)
committerGuus Sliepen <guus@sliepen.org>
Mon, 23 Sep 2019 12:12:28 +0000 (14:12 +0200)
Promote the type of the port argument, which comes right before any variable
arguments, to ensure va_start() doesn't run into undefined behaviour.

The alternative would be to shuffle the arguments so that a pointer is
the last non-variable argument, but that would break the ABI.


No differences found