X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xnHf3r2YVf1aLHdsK9HA3JYGjua8CBpfPLuyWAOQ9qU=; b=nxgH6aWe3rl/bJ4VlCRtBxIAUxjjbR0DccLmYNhjZmU6JcYf+eCGIgvxqKoaSknzXa iGceRHDIF+9BfQjkj1gYgmMVRQ2zGoc8Jr1JoL466PAbiFFT6+i+a+HGfCri8TD4McpP lLNqPTQ1S4H6uulhCxg1UYK/Te1ktxXhkcFZOHcGtp9PWSHvZiotilTih3TrRBZbUi7P IoNU537j9guy6m5nxZxfuh8vaJQNuow1dsj6YfSQf3YjvuxsElrrjc0tmGFP9bvEGnJD co0NpSA5HCMtSVdWgOTCP7DJcgEM7/VJ4BYS8Za3RTAbRIqJhB2XzAhCCHo/CKy8eecm uxkQ== X-Received: by 10.180.9.37 with SMTP id w5mr12061628wia.39.1411038471420; Thu, 18 Sep 2014 04:07:51 -0700 (PDT) From: Riccardo Lucchese To: geda-user AT delorie DOT com Cc: Riccardo Lucchese Subject: [geda-user] [PATCH 20/43] Remove deprecated use of g_strcasecmp() Date: Thu, 18 Sep 2014 13:06:15 +0200 Message-Id: <1411038398-10231-21-git-send-email-riccardo.lucchese@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1411038398-10231-1-git-send-email-riccardo.lucchese@gmail.com> References: <1411038398-10231-1-git-send-email-riccardo DOT lucchese AT gmail DOT com> Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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 ba2e987..d5162e9 100644 --- a/libgeda/src/s_page.c +++ b/libgeda/src/s_page.c @@ -416,7 +416,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