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
This commit is contained in:
Neil Williams 2006-03-09 17:04:24 +00:00
parent 91642e8fb7
commit 2db3d294b4

View File

@ -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) {