Skip to contentSkip to conversation

master - cleanup: ignore return values

PATCH Zdenek Kabelac 1 participant 1 message Dec 15, 2012

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8ab43345051fe49b1d56771383feb65c408eaf9a
Commit:        8ab43345051fe49b1d56771383feb65c408eaf9a
Parent:        1b05438fcbb27ba425c369c0b9d4e641ccc1b970
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Dec 14 18:58:18 2012 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sat Dec 15 14:57:40 2012 +0100

cleanup: ignore return values

These dm_snprintfs should not fail, since enough space is reserved. So return intentionaly ignored.

---
 lib/cache/lvmetad.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
lib/cache/lvmetad.c +2 -2
index a636f43..3ce2804 100644
@@ -618,7 +618,7 @@ static int _extract_mda(struct metadata_area *mda, void *baton)
 	if (!mda->ops->mda_export_text) /* do nothing */
 		return 1;
 
-	dm_snprintf(id, 32, "mda%d", b->i);
+	(void) dm_snprintf(id, 32, "mda%d", b->i);
 	if (!(cn = make_config_node(b->cft, id, b->cft->root, b->pre_sib)))
 		return 0;
 	if (!mda->ops->mda_export_text(mda, b->cft, cn))
@@ -639,7 +639,7 @@ static int _extract_da(struct disk_locn *da, void *baton)
 	if (!da)
 		return 1;
 
-	dm_snprintf(id, 32, "da%d", b->i);
+	(void) dm_snprintf(id, 32, "da%d", b->i);
 	if (!(cn = make_config_node(b->cft, id, b->cft->root, b->pre_sib)))
 		return 0;
 	if (!config_make_nodes(b->cft, cn, NULL,