]> git.meshlink.io Git - catta/commit
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)
commitb2b4639f998e3362a182953ba974520ac99de0fc
treeb8ceb86ca3f0bc4b330abf969f18ef480cd0ff31
parent08ac450b42b7533e97c02c02bbbef8946b9582fb
Fix varargs warning for catta_server_add_service().

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.
include/catta/publish.h
src/entry.c