mirror of
https://github.com/systemd/systemd.git
synced 2024-12-03 23:33:38 +08:00
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).
This commit is contained in:
parent
cfe8ee463d
commit
2c47fff6d2
@ -48,7 +48,7 @@
|
||||
|
||||
<funcprototype>
|
||||
<funcdef>void <function>sd_bus_unrefp</function></funcdef>
|
||||
<paramdef>sd_bus **<parameter>bus</parameter></paramdef>
|
||||
<paramdef>sd_bus **<parameter>busp</parameter></paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
</refsynopsisdiv>
|
||||
@ -105,10 +105,12 @@
|
||||
…
|
||||
}</programlisting>
|
||||
|
||||
<para><function>sd_bus_ref()</function>,
|
||||
<function>sd_bus_unref()</function> and
|
||||
<function>sd_bus_unrefp()</function> execute no operation if the
|
||||
passed in bus object is <constant>NULL</constant>.</para>
|
||||
<para><function>sd_bus_ref()</function> and <function>sd_bus_unref()</function>
|
||||
execute no operation if the passed in bus object address is
|
||||
<constant>NULL</constant>. <function>sd_bus_unrefp()</function> will first
|
||||
dereference its argument, which must not be <constant>NULL</constant>, and will
|
||||
execute no operation if <emphasis>that</emphasis> is <constant>NULL</constant>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
|
Loading…
Reference in New Issue
Block a user