[PATCH v2 08/13] libmultipath: add a cleanup function for unsigned char *

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Martin Wilck <mwilck@xxxxxxxx>

Signed-off-by: Martin Wilck <mwilck@xxxxxxxx>
---
 libmultipath/util.c | 5 +++++
 libmultipath/util.h | 1 +
 2 files changed, 6 insertions(+)

diff --git a/libmultipath/util.c b/libmultipath/util.c
index b7952a5..ce5ea73 100644
--- a/libmultipath/util.c
+++ b/libmultipath/util.c
@@ -466,3 +466,8 @@ void cleanup_charp(char **p)
 {
 	free(*p);
 }
+
+void cleanup_ucharp(unsigned char **p)
+{
+	free(*p);
+}
diff --git a/libmultipath/util.h b/libmultipath/util.h
index 421842a..79d9f32 100644
--- a/libmultipath/util.h
+++ b/libmultipath/util.h
@@ -125,4 +125,5 @@ static inline void clear_bit_in_bitfield(unsigned int bit, struct bitfield *bf)
 	})
 
 void cleanup_charp(char **p);
+void cleanup_ucharp(unsigned char **p);
 #endif /* _UTIL_H */
-- 
2.33.1


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux