mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -24,8 +24,6 @@
|
|||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#undef G_DISABLE_DEPRECATED /* for g_strncasecmp */
|
|
||||||
|
|
||||||
#include "qof.h"
|
#include "qof.h"
|
||||||
#include "qof-backend-qsf.h"
|
#include "qof-backend-qsf.h"
|
||||||
#include "qsf-xml.h"
|
#include "qsf-xml.h"
|
||||||
@@ -210,7 +208,7 @@ qsf_session_begin(QofBackend *be, QofSession *session, const char *book_path,
|
|||||||
p = strchr (book_path, ':');
|
p = strchr (book_path, ':');
|
||||||
if (p) {
|
if (p) {
|
||||||
path = g_strdup (book_path);
|
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);
|
p = g_new(char, strlen(path) - 5 + 1);
|
||||||
strcpy(p, path + 5);
|
strcpy(p, path + 5);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user