diff mbox series

[28/41] libmultipath: rename _cleanup_foreign()

Message ID 20240808152620.93965-29-mwilck@suse.com (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show
Series multipath-tools: comply with C library reserved names | expand

Commit Message

Martin Wilck Aug. 8, 2024, 3:26 p.m. UTC
Signed-off-by: Martin Wilck <mwilck@suse.com>
---
 libmultipath/foreign.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libmultipath/foreign.c b/libmultipath/foreign.c
index 2a42df5..5ec2d0b 100644
--- a/libmultipath/foreign.c
+++ b/libmultipath/foreign.c
@@ -84,7 +84,7 @@  static void free_foreign(struct foreign *fgn)
 	free(fgn);
 }
 
-void _cleanup_foreign(void)
+void cleanup_foreign__(void)
 {
 	struct foreign *fgn;
 	int i;
@@ -103,7 +103,7 @@  void _cleanup_foreign(void)
 void cleanup_foreign(void)
 {
 	wrlock_foreigns();
-	_cleanup_foreign();
+	cleanup_foreign__();
 	unlock_foreigns(NULL);
 }
 
@@ -164,7 +164,7 @@  static int _init_foreign(const char *enable)
 		r = -errno;
 		condlog(1, "%s: error scanning foreign multipath libraries: %m",
 			__func__);
-		_cleanup_foreign();
+		cleanup_foreign__();
 		goto out_free_pre;
 	}