diff mbox series

[13/41] libmpathutil: rename _install_keyword() to install_keyword__()

Message ID 20240808152620.93965-14-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
Also, remove some superfluous extern declarations in parser.h.

Signed-off-by: Martin Wilck <mwilck@suse.com>
---
 libmpathutil/libmpathutil.version |  2 +-
 libmpathutil/parser.c             |  2 +-
 libmpathutil/parser.h             | 28 ++++++++++++++--------------
 3 files changed, 16 insertions(+), 16 deletions(-)
diff mbox series

Patch

diff --git a/libmpathutil/libmpathutil.version b/libmpathutil/libmpathutil.version
index 2dcaa35..fb92f72 100644
--- a/libmpathutil/libmpathutil.version
+++ b/libmpathutil/libmpathutil.version
@@ -76,7 +76,7 @@  global:
 	get_strbuf_len;
 	get_strbuf_str;
 	get_word;
-	_install_keyword;
+	install_keyword__;
 	install_sublevel;
 	install_sublevel_end;
 	is_quote;
diff --git a/libmpathutil/parser.c b/libmpathutil/parser.c
index ab7d1aa..217a877 100644
--- a/libmpathutil/parser.c
+++ b/libmpathutil/parser.c
@@ -70,7 +70,7 @@  install_sublevel_end(void)
 }
 
 int
-_install_keyword(vector keywords, char *string,
+install_keyword__(vector keywords, char *string,
 		 handler_fn *handler,
 		 print_fn *print,
 		 int unique)
diff --git a/libmpathutil/parser.h b/libmpathutil/parser.h
index baa9c55..179aeca 100644
--- a/libmpathutil/parser.h
+++ b/libmpathutil/parser.h
@@ -63,22 +63,22 @@  struct keyword {
 	for (i = 0; i < (k)->sub->allocated && ((p) = (k)->sub->slot[i]); i++)
 
 /* Prototypes */
-extern int keyword_alloc(vector keywords, char *string, handler_fn *handler,
-			 print_fn *print, int unique);
+int keyword_alloc(vector keywords, char *string, handler_fn *handler,
+		  print_fn *print, int unique);
 #define install_keyword_root(str, h) keyword_alloc(keywords, str, h, NULL, 1)
-extern void install_sublevel(void);
-extern void install_sublevel_end(void);
+void install_sublevel(void);
+void install_sublevel_end(void);
 
-extern int _install_keyword(vector keywords, char *string, handler_fn *handler,
-			    print_fn *print, int unique);
-#define install_keyword(str, vec, pri) _install_keyword(keywords, str, vec, pri, 1)
-#define install_keyword_multi(str, vec, pri) _install_keyword(keywords, str, vec, pri, 0)
-extern void dump_keywords(vector keydump, int level);
-extern void free_keywords(vector keywords);
-extern vector alloc_strvec(char *string);
-extern void *set_value(vector strvec);
-extern int process_file(struct config *conf, const char *conf_file);
-extern struct keyword * find_keyword(vector keywords, vector v, char * name);
+int install_keyword__(vector keywords, char *string, handler_fn *handler,
+		      print_fn *print, int unique);
+#define install_keyword(str, vec, pri) install_keyword__(keywords, str, vec, pri, 1)
+#define install_keyword_multi(str, vec, pri) install_keyword__(keywords, str, vec, pri, 0)
+void dump_keywords(vector keydump, int level);
+void free_keywords(vector keywords);
+vector alloc_strvec(char *string);
+void *set_value(vector strvec);
+int process_file(struct config *conf, const char *conf_file);
+struct keyword * find_keyword(vector keywords, vector v, char * name);
 int snprint_keyword(struct strbuf *buff, const char *fmt, struct keyword *kw,
 		    const void *data);
 bool is_quote(const char* token);