]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: cleanup fdisk_partition_to_string() comment
authorKarel Zak <kzak@redhat.com>
Wed, 26 Nov 2014 10:26:31 +0000 (11:26 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 26 Nov 2014 10:26:31 +0000 (11:26 +0100)
libfdisk/src/partition.c

index 194b68e3d06fd717d8224688b48fe929e0c3623b..d823857bf6ee86cbdc47834334806c48df997300 100644 (file)
@@ -600,7 +600,8 @@ int fdisk_partition_next_partno(
  * Returns info about partition converted to printable string.
  *
  * For example
- *
+ * <informalexample>
+ *   <programlisting>
  *      struct fdisk_parition *pa;
  *
  *      fdisk_get_partition(cxt, 0, &pa);
@@ -608,12 +609,13 @@ int fdisk_partition_next_partno(
  *     printf("first partition uuid: %s\n", data);
  *     free(data);
  *     fdisk_unref_partition(pa);
+ *   </programlisting>
+ * </informalexample>
  *
  * returns UUID for the first partition.
  *
  * Returns 0 on success, otherwise, a corresponding error.
  */
-
 int fdisk_partition_to_string(struct fdisk_partition *pa,
                              struct fdisk_context *cxt,
                              int id,