[PATCH 21/41] libmultipath: rename __snprint_foreign_topology()

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

 



... and __LAST_FOREIGN_RETCODE.

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

diff --git a/libmultipath/foreign.c b/libmultipath/foreign.c
index d01a5ef..2a42df5 100644
--- a/libmultipath/foreign.c
+++ b/libmultipath/foreign.c
@@ -499,7 +499,7 @@ void foreign_multipath_layout(fieldwidth_t *width)
 	pthread_cleanup_pop(1);
 }
 
-static int __snprint_foreign_topology(struct strbuf *buf, int verbosity,
+static int snprint_foreign_topology__(struct strbuf *buf, int verbosity,
 				      const fieldwidth_t *width)
 {
 	struct foreign *fgn;
@@ -540,7 +540,7 @@ int snprint_foreign_topology(struct strbuf *buf, int verbosity,
 		return 0;
 	}
 	pthread_cleanup_push(unlock_foreigns, NULL);
-	rc = __snprint_foreign_topology(buf, verbosity, width);
+	rc = snprint_foreign_topology__(buf, verbosity, width);
 	pthread_cleanup_pop(1);
 	return rc;
 }
@@ -570,7 +570,7 @@ void print_foreign_topology(int verbosity)
 		fgn->release_paths(fgn->context, vec);
 		pthread_cleanup_pop(1);
 	}
-	__snprint_foreign_topology(&buf, verbosity, width);
+	snprint_foreign_topology__(&buf, verbosity, width);
 	pthread_cleanup_pop(1);
 	printf("%s", get_strbuf_str(&buf));
 }
diff --git a/libmultipath/foreign.h b/libmultipath/foreign.h
index db1592c..f3bc1b2 100644
--- a/libmultipath/foreign.h
+++ b/libmultipath/foreign.h
@@ -32,7 +32,7 @@ enum foreign_retcode {
 	FOREIGN_UNCLAIMED,
 	FOREIGN_NODEV,
 	FOREIGN_ERR,
-	__LAST_FOREIGN_RETCODE,
+	LAST_FOREIGN_RETCODE__,
 };
 
 /**
-- 
2.46.0





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

  Powered by Linux