summaryrefslogtreecommitdiffstats
path: root/libblkid/src/probe.c
diff options
context:
space:
mode:
authorKarel Zak2013-03-15 14:23:04 +0100
committerKarel Zak2013-03-15 14:59:02 +0100
commit2bb7a706a19b3473b06c2f365994660c89c4bc87 (patch)
tree8846e3c0e23d5ab4d5e5d9e285ace1523be2fbd9 /libblkid/src/probe.c
parentbuild-sys: inform gtk-doc about __ul_attribute__ (diff)
downloadkernel-qcow2-util-linux-2bb7a706a19b3473b06c2f365994660c89c4bc87.tar.gz
kernel-qcow2-util-linux-2bb7a706a19b3473b06c2f365994660c89c4bc87.tar.xz
kernel-qcow2-util-linux-2bb7a706a19b3473b06c2f365994660c89c4bc87.zip
libblkid: clean up header file
* don't teach people C by header files, so use warn_unused_result attribute only on places where we return allocated memory (to avoid leaks in applications). Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/probe.c')
-rw-r--r--libblkid/src/probe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c
index aecf4d542..5db48b72f 100644
--- a/libblkid/src/probe.c
+++ b/libblkid/src/probe.c
@@ -1038,6 +1038,9 @@ int blkid_do_wipe(blkid_probe pr, int dryrun)
* blkid_probe_enable_superblocks(pr, 1);
* blkid_probe_set_superblocks_flags(pr, BLKID_SUBLKS_MAGIC);
*
+ * blkid_probe_enable_partitions(pr, 1);
+ * blkid_probe_set_partitions_flags(pr, BLKID_PARTS_MAGIC);
+ *
* while (blkid_do_probe(pr) == 0) {
* const char *ostr = NULL;
* size_t len = 0;