diff mbox series

[12/41] libmpathutil: rename _log_bitfield_overflow()

Message ID 20240808152620.93965-13-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:25 p.m. UTC
Signed-off-by: Martin Wilck <mwilck@suse.com>
---
 libmpathutil/libmpathutil.version | 2 +-
 libmpathutil/util.c               | 2 +-
 libmpathutil/util.h               | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libmpathutil/libmpathutil.version b/libmpathutil/libmpathutil.version
index 270dcd8..2dcaa35 100644
--- a/libmpathutil/libmpathutil.version
+++ b/libmpathutil/libmpathutil.version
@@ -81,7 +81,7 @@  global:
 	install_sublevel_end;
 	is_quote;
 	keyword_alloc;
-	_log_bitfield_overflow;
+	log_bitfield_overflow__;
 	libmp_basename;
 	libmp_strlcat;
 	libmp_strlcpy;
diff --git a/libmpathutil/util.c b/libmpathutil/util.c
index 136aa59..1255974 100644
--- a/libmpathutil/util.c
+++ b/libmpathutil/util.c
@@ -354,7 +354,7 @@  struct bitfield *alloc_bitfield(unsigned int maxbit)
 	return bf;
 }
 
-void _log_bitfield_overflow(const char *f, unsigned int bit, unsigned int len)
+void log_bitfield_overflow__(const char *f, unsigned int bit, unsigned int len)
 {
 	condlog(0, "%s: bitfield overflow: %u >= %u", f, bit, len);
 }
diff --git a/libmpathutil/util.h b/libmpathutil/util.h
index 110b2f6..b1772e3 100644
--- a/libmpathutil/util.h
+++ b/libmpathutil/util.h
@@ -103,9 +103,9 @@  struct bitfield {
 
 struct bitfield *alloc_bitfield(unsigned int maxbit);
 
-void _log_bitfield_overflow(const char *f, unsigned int bit, unsigned int len);
+void log_bitfield_overflow__(const char *f, unsigned int bit, unsigned int len);
 #define log_bitfield_overflow(bit, len) \
-	_log_bitfield_overflow(__func__, bit, len)
+	log_bitfield_overflow__(__func__, bit, len)
 
 static inline bool is_bit_set_in_bitfield(unsigned int bit,
 				       const struct bitfield *bf)