From b2ab0659fad23fa916505afce07beb277fb0ced9 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 19 Nov 2026 20:33:46 +0100 Subject: 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. --- src/symbols.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/symbols.c') 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; } /** -- cgit v1.3