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:
parent
91642e8fb7
commit
2db3d294b4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user