aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/symbols.c
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-11-19 20:33:46 +0100
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-11-20 00:24:19 +0100
commitb2ab0659fad23fa916505afce07beb277fb0ced9 (patch)
treeae3596163d476c20326bff98590097e840451f98 /src/symbols.c
parentdaa46b24452c2c2eb817170d48a6585bec3c919e (diff)
use G_GSIZE_FORMAT: prevents warnings on platforms where gsize is not size_t
This was observed on OmniOS i386, where it is probably a misconfiguration of glib. I also had to replace one reference of g_ascii_strncasecmp() with libc's strncasecmp() because of the type mismatch.
Diffstat (limited to 'src/symbols.c')
-rw-r--r--src/symbols.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/symbols.c b/src/symbols.c
index 5feaba0..bd0c077 100644
--- a/src/symbols.c
+++ b/src/symbols.c
@@ -58,7 +58,7 @@ teco_symbol_list_init(teco_symbol_list_t *ctx, const teco_symbol_entry_t *entrie
memset(ctx, 0, sizeof(*ctx));
ctx->entries = entries;
ctx->size = size;
- ctx->cmp_fnc = case_sensitive ? strncmp : g_ascii_strncasecmp;
+ ctx->cmp_fnc = case_sensitive ? strncmp : strncasecmp;
}
/**