Skip to content

Commit 0144678

Browse files
abderrahimkeszybz
authored andcommitted
man: fix docbook syntax for function docs
This fixes sd_bus_error_add_map and man/sd_uid_get_state (cherry picked from commit 0ee4239)
1 parent b283661 commit 0144678

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

man/sd_bus_error_add_map.xml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,15 @@
3535
3636
} sd_bus_error_map;</funcsynopsisinfo>
3737

38-
</funcsynopsis>
38+
<funcsynopsisinfo><constant>SD_BUS_ERROR_MAP(<replaceable>name</replaceable>, <replaceable>code</replaceable>)</constant></funcsynopsisinfo>
3939

40-
<para>
41-
<constant>SD_BUS_ERROR_MAP(<replaceable>name</replaceable>, <replaceable>code</replaceable>)</constant>
42-
</para>
43-
<para>
44-
<constant>SD_BUS_ERROR_MAP_END</constant>
45-
</para>
40+
<funcsynopsisinfo><constant>SD_BUS_ERROR_MAP_END</constant></funcsynopsisinfo>
4641

4742
<funcprototype>
4843
<funcdef>int <function>sd_bus_error_add_map</function></funcdef>
4944
<paramdef>const sd_bus_error_map *<parameter>map</parameter></paramdef>
5045
</funcprototype>
51-
46+
</funcsynopsis>
5247
</refsynopsisdiv>
5348

5449
<refsect1>

man/sd_uid_get_state.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@
6262
<paramdef>uid_t <parameter>uid</parameter></paramdef>
6363
<paramdef>char **<parameter>session</parameter></paramdef>
6464
</funcprototype>
65-
</funcsynopsis>
6665

67-
<funcprototype>
68-
<funcdef>int <function>sd_uid_get_login_time</function></funcdef>
69-
<paramdef>uid_t <parameter>uid</parameter></paramdef>
70-
<paramdef>uint64_t *<parameter>usec</parameter></paramdef>
71-
</funcprototype>
66+
<funcprototype>
67+
<funcdef>int <function>sd_uid_get_login_time</function></funcdef>
68+
<paramdef>uid_t <parameter>uid</parameter></paramdef>
69+
<paramdef>uint64_t *<parameter>usec</parameter></paramdef>
70+
</funcprototype>
71+
</funcsynopsis>
7272
</refsynopsisdiv>
7373

7474
<refsect1>

0 commit comments

Comments
 (0)