From: Zbigniew Jędrzejewski-Szmek Date: Fri, 27 Jul 2018 06:06:07 +0000 (+0200) Subject: man: clarify what can be NULL in an sd_bus_unrefp call X-Git-Tag: v240~868^2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c47fff6d2d9750ddf9e97fc45714aa8984b5eb6;p=thirdparty%2Fsystemd.git man: clarify what can be NULL in an sd_bus_unrefp call Confusingly, the argument is called 'bus' in all cases. Let's not give people the idea to call sd_bus_unrefp(NULL). --- diff --git a/man/sd_bus_new.xml b/man/sd_bus_new.xml index b095518f8fe..5180ae78157 100644 --- a/man/sd_bus_new.xml +++ b/man/sd_bus_new.xml @@ -48,7 +48,7 @@ void sd_bus_unrefp - sd_bus **bus + sd_bus **busp @@ -105,10 +105,12 @@ … } - sd_bus_ref(), - sd_bus_unref() and - sd_bus_unrefp() execute no operation if the - passed in bus object is NULL. + sd_bus_ref() and sd_bus_unref() + execute no operation if the passed in bus object address is + NULL. sd_bus_unrefp() will first + dereference its argument, which must not be NULL, and will + execute no operation if that is NULL. +