summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-16 17:39:17 +0000
committermidipix <writeonce@midipix.org>2024-03-16 17:39:17 +0000
commitfbd10d2262e87eb93f8fe9c17bde23a1dcdf6e74 (patch)
treec91dd7eb56e194ad3cd57e50038258e7ab939522 /src
parent886c09eb7caa4f82d98ca87dab24418a344f5ae7 (diff)
downloadslibtool-fbd10d2262e87eb93f8fe9c17bde23a1dcdf6e74.tar.bz2
slibtool-fbd10d2262e87eb93f8fe9c17bde23a1dcdf6e74.tar.xz
code base: rename qsort-related internal strcmp as slbt_{coff}_qsort_strcmp().
Diffstat (limited to 'src')
-rw-r--r--src/arbits/slbt_archive_mapstrv.c4
-rw-r--r--src/internal/slibtool_coff_impl.c2
-rw-r--r--src/internal/slibtool_coff_impl.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/arbits/slbt_archive_mapstrv.c b/src/arbits/slbt_archive_mapstrv.c
index c8c27e9..e97db76 100644
--- a/src/arbits/slbt_archive_mapstrv.c
+++ b/src/arbits/slbt_archive_mapstrv.c
@@ -13,7 +13,7 @@
#include "slibtool_ar_impl.h"
#include "slibtool_coff_impl.h"
-static int slbt_strcmp(const void * a, const void * b)
+static int slbt_qsort_strcmp(const void * a, const void * b)
{
return strcmp(*(const char **)a,*(const char **)b);
}
@@ -39,7 +39,7 @@ slbt_hidden int slbt_update_mapstrv(
for (nsyms=0,symv=mctx->symstrv; *symv; symv++)
mapstrv[nsyms++] = *symv;
- qsort(mapstrv,nsyms,sizeof(const char *),fcoff ? slbt_coff_strcmp : slbt_strcmp);
+ qsort(mapstrv,nsyms,sizeof(const char *),fcoff ? slbt_coff_qsort_strcmp : slbt_qsort_strcmp);
mctx->mapstrv = mapstrv;
diff --git a/src/internal/slibtool_coff_impl.c b/src/internal/slibtool_coff_impl.c
index 8d405ac..ac6a2fd 100644
--- a/src/internal/slibtool_coff_impl.c
+++ b/src/internal/slibtool_coff_impl.c
@@ -7,7 +7,7 @@
#include <string.h>
#include "slibtool_visibility_impl.h"
-slbt_hidden int slbt_coff_strcmp(const void * a, const void * b)
+slbt_hidden int slbt_coff_qsort_strcmp(const void * a, const void * b)
{
const char * dot;
const char * mark;
diff --git a/src/internal/slibtool_coff_impl.h b/src/internal/slibtool_coff_impl.h
index c733b0f..b08c858 100644
--- a/src/internal/slibtool_coff_impl.h
+++ b/src/internal/slibtool_coff_impl.h
@@ -1,6 +1,6 @@
#ifndef SLIBTOOL_COFF_IMPL_H
#define SLIBTOOL_COFF_IMPL_H
-int slbt_coff_strcmp(const void * a, const void * b);
+int slbt_coff_qsort_strcmp(const void * a, const void * b);
#endif