From de1405fddd8cb3104c04b1a11524745ec26853ce Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Sun, 10 Mar 2024 21:53:11 +0000
Subject: slbt_create_library_wrapper(): fix signature (string params are const
 types).

---
 src/internal/slibtool_libmeta_impl.c  | 24 ++++++++++++------------
 src/internal/slibtool_metafile_impl.h |  8 ++++----
 2 files changed, 16 insertions(+), 16 deletions(-)

(limited to 'src')

diff --git a/src/internal/slibtool_libmeta_impl.c b/src/internal/slibtool_libmeta_impl.c
index 961a69a..0db0686 100644
--- a/src/internal/slibtool_libmeta_impl.c
+++ b/src/internal/slibtool_libmeta_impl.c
@@ -18,10 +18,10 @@
 static int  slbt_create_default_library_wrapper(
 	const struct slbt_driver_ctx *	dctx,
 	struct slbt_exec_ctx *		ectx,
-	char *				arname,
-	char *				soname,
-	char *				soxyz,
-	char *				solnk)
+	const char *			arname,
+	const char *			soname,
+	const char *			soxyz,
+	const char *			solnk)
 {
 	int					ret;
 	int					fdout;
@@ -131,10 +131,10 @@ static int  slbt_create_default_library_wrapper(
 static int  slbt_create_compatible_library_wrapper(
 	const struct slbt_driver_ctx *	dctx,
 	struct slbt_exec_ctx *		ectx,
-	char *				arname,
-	char *				soname,
-	char *				soxyz,
-	char *				solnk)
+	const char *			arname,
+	const char *			soname,
+	const char *			soxyz,
+	const char *			solnk)
 {
 	int					ret;
 	int					fdout;
@@ -270,10 +270,10 @@ static int  slbt_create_compatible_library_wrapper(
 slbt_hidden int slbt_create_library_wrapper(
 	const struct slbt_driver_ctx *	dctx,
 	struct slbt_exec_ctx *		ectx,
-	char *				arname,
-	char *				soname,
-	char *				soxyz,
-	char *				solnk)
+	const char *			arname,
+	const char *			soname,
+	const char *			soxyz,
+	const char *			solnk)
 {
 	if (dctx->cctx->drvflags & SLBT_DRIVER_LEGABITS)
 		return slbt_create_compatible_library_wrapper(
diff --git a/src/internal/slibtool_metafile_impl.h b/src/internal/slibtool_metafile_impl.h
index bd78b09..b415c05 100644
--- a/src/internal/slibtool_metafile_impl.h
+++ b/src/internal/slibtool_metafile_impl.h
@@ -10,9 +10,9 @@ int  slbt_create_object_wrapper(
 int  slbt_create_library_wrapper(
 	const struct slbt_driver_ctx *	dctx,
 	struct slbt_exec_ctx *		ectx,
-	char *				arname,
-	char *				soname,
-	char *				soxyz,
-	char *				solnk);
+	const char *			arname,
+	const char *			soname,
+	const char *			soxyz,
+	const char *			solnk);
 
 #endif
-- 
cgit v1.2.3