summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-10 21:53:11 +0000
committermidipix <writeonce@midipix.org>2024-03-10 21:54:42 +0000
commitde1405fddd8cb3104c04b1a11524745ec26853ce (patch)
tree3a1adfc25c51076e5602a95e5c1f780056f7104b /src/internal
parenta07095d89f48e4612aea2b6edd0c3a62ab209892 (diff)
downloadslibtool-de1405fddd8cb3104c04b1a11524745ec26853ce.tar.bz2
slibtool-de1405fddd8cb3104c04b1a11524745ec26853ce.tar.xz
slbt_create_library_wrapper(): fix signature (string params are const types).
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/slibtool_libmeta_impl.c24
-rw-r--r--src/internal/slibtool_metafile_impl.h8
2 files changed, 16 insertions, 16 deletions
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