man: correct return value of sd_bus_open_with_description

Since f4b2933ee7
if a description is not set, sd_bus_open_with_description returns -ENXIO, but the
documnetation stated that it returned successfully with a NULL string.
This commit is contained in:
Luca Boccassi 2021-07-06 12:55:30 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent ef1a927848
commit 48e5ef14af

View file

@ -115,7 +115,7 @@
<citerefentry><refentrytitle>sd_bus_open_with_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>
or similar. If not set this way, a default string like <literal>system</literal> or
<literal>user</literal> will be returned for the system or user buses, and
<constant>NULL</constant> otherwise.</para>
<constant>-ENXIO</constant> otherwise.</para>
<para><function>sd_bus_set_anonymous()</function> enables or disables "anonymous authentication",
i.e. lack of authentication, of the bus peer. This function must be called before the bus is
@ -222,7 +222,10 @@
<term><constant>-ENXIO</constant></term>
<listitem><para>The bus object passed to <function>sd_bus_get_tid()</function> was not a
default bus object and is not attached to an event loop.</para></listitem>
default bus object and is not attached to an event loop.</para>
<para>The bus object passed to <function>sd_bus_get_description()</function> did
not have a <parameter>description</parameter>.</para></listitem>
</varlistentry>
</variablelist>
</refsect2>