From 2db3d294b4b2eedbb2b022d5ccdfbed402eae4e7 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Thu, 9 Mar 2006 17:04:24 +0000 Subject: [PATCH] Remove deprecated glib function g_strncasecmp in favour of g_ascii_strncasecmp git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13570 57a11ea4-9604-0410-9ed3-97b8803252fd --- lib/libqof/backend/file/qsf-backend.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/libqof/backend/file/qsf-backend.c b/lib/libqof/backend/file/qsf-backend.c index bb05cf27c3..9d8ca0f40b 100644 --- a/lib/libqof/backend/file/qsf-backend.c +++ b/lib/libqof/backend/file/qsf-backend.c @@ -24,8 +24,6 @@ #define _GNU_SOURCE #include "config.h" -#undef G_DISABLE_DEPRECATED /* for g_strncasecmp */ - #include "qof.h" #include "qof-backend-qsf.h" #include "qsf-xml.h" @@ -210,7 +208,7 @@ qsf_session_begin(QofBackend *be, QofSession *session, const char *book_path, p = strchr (book_path, ':'); if (p) { path = g_strdup (book_path); - if (!g_strncasecmp(path, "file:", 5)) { + if (!g_ascii_strncasecmp(path, "file:", 5)) { p = g_new(char, strlen(path) - 5 + 1); strcpy(p, path + 5); } @@ -788,7 +786,7 @@ qsf_entity_foreach(QofEntity *ent, gpointer data) if(0 == safe_strcmp(qof_param->param_type, QOF_TYPE_COLLECT)) { qsf_coll = qof_param->param_getfcn(ent, qof_param); - if(qsf_coll) { + if(qsf_coll) { params->qof_param = qof_param; params->output_node = object_node; if(qof_collection_count(qsf_coll) > 0) {