Mail Archives: geda-user/2014/10/14/16:18:38
Verbatim from GLib's Reference Manual: "g_strcasecmp has been
deprecated since version 2.2 and should not be used in newly-written
code". Use g_ascii_strcasecmp() instead.
---
gattrib/src/g_rc.c | 2 +-
gsymcheck/src/g_rc.c | 2 +-
libgeda/src/s_page.c | 2 +-
utils/gschlas/g_rc.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gattrib/src/g_rc.c b/gattrib/src/g_rc.c
index 95a3068..14eea61 100644
--- a/gattrib/src/g_rc.c
+++ b/gattrib/src/g_rc.c
@@ -66,7 +66,7 @@ SCM g_rc_gattrib_version(SCM scm_version)
SCM_ARG1, "gattrib-version");
version = scm_to_utf8_string (scm_version);
- if (g_strcasecmp (version, PACKAGE_DATE_VERSION) != 0) {
+ if (g_ascii_strcasecmp(version, PACKAGE_DATE_VERSION) != 0) {
fprintf(stderr,
_("You are running gEDA/gaf version [%s%s.%s],\nbut you have a version [%s] gattribrc file.\nPlease be sure that you have the latest rc file.\n"),
PREPEND_VERSION_STRING, PACKAGE_DOTTED_VERSION,
diff --git a/gsymcheck/src/g_rc.c b/gsymcheck/src/g_rc.c
index 0524a6e..103ecfb 100644
--- a/gsymcheck/src/g_rc.c
+++ b/gsymcheck/src/g_rc.c
@@ -53,7 +53,7 @@ SCM g_rc_gsymcheck_version(SCM scm_version)
SCM_ARG1, "gsymcheck-version");
version = scm_to_utf8_string (scm_version);
- if (g_strcasecmp (version, PACKAGE_DATE_VERSION) != 0) {
+ if (g_ascii_strcasecmp(version, PACKAGE_DATE_VERSION) != 0) {
fprintf(stderr, _(
"You are running gEDA/gaf version [%s%s.%s],\n"
"but you have a version [%s] gsymcheckrc file:\n[%s]\n"
diff --git a/libgeda/src/s_page.c b/libgeda/src/s_page.c
index c85d357..f276a49 100644
--- a/libgeda/src/s_page.c
+++ b/libgeda/src/s_page.c
@@ -413,7 +413,7 @@ PAGE *s_page_search (TOPLEVEL *toplevel, const gchar *filename)
iter = g_list_next( iter ) ) {
page = (PAGE *)iter->data;
- if ( g_strcasecmp( page->page_filename, filename ) == 0 )
+ if (g_ascii_strcasecmp(page->page_filename, filename) == 0 )
return page;
}
return NULL;
diff --git a/utils/gschlas/g_rc.c b/utils/gschlas/g_rc.c
index c4355ee..da6d8e1 100644
--- a/utils/gschlas/g_rc.c
+++ b/utils/gschlas/g_rc.c
@@ -51,7 +51,7 @@ SCM g_rc_gschlas_version(SCM scm_version)
SCM_ARG1, "gschlas-version");
version = scm_to_utf8_string (scm_version);
- if (g_strcasecmp (version, PACKAGE_DATE_VERSION) != 0) {
+ if (g_ascii_strcasecmp(version, PACKAGE_DATE_VERSION) != 0) {
fprintf(stderr,
"You are running gEDA/gaf version [%s%s.%s],\n",
PREPEND_VERSION_STRING, PACKAGE_DOTTED_VERSION,
--
2.1.0
- Raw text -