[gnome-commander] Replacing obsoleted g_strncasecmp() with g_ascii_strncasecmp()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Replacing obsoleted g_strncasecmp() with g_ascii_strncasecmp()
- Date: Mon, 25 Jul 2011 20:16:35 +0000 (UTC)
commit 12363a09199253a2863d365ae8b2eb6e1691eecd
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Jul 25 22:14:50 2011 +0200
Replacing obsoleted g_strncasecmp() with g_ascii_strncasecmp()
src/gnome-cmd-data.cc | 5 ++---
src/intviewer/viewer-widget.cc | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index b4bde7d..2b039f8 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -368,9 +368,8 @@ inline gboolean vfs_is_uri_local (const char *uri)
gboolean b = gnome_vfs_uri_is_local (pURI);
gnome_vfs_uri_unref (pURI);
- /* make sure this is actually a local path
- (gnome treats "burn://" as local, too and we don't want that) */
- if (g_strncasecmp (uri,"file:/", 6)!=0)
+ // make sure this is actually a local path (gnome treats "burn://" as local too, and we don't want that)
+ if (g_ascii_strncasecmp (uri, "file:/", 6)!=0)
b = FALSE;
DEBUG('m',"uri (%s) is %slocal\n", uri, b?"":"NOT ");
diff --git a/src/intviewer/viewer-widget.cc b/src/intviewer/viewer-widget.cc
index c116181..ccac65a 100644
--- a/src/intviewer/viewer-widget.cc
+++ b/src/intviewer/viewer-widget.cc
@@ -299,7 +299,7 @@ static VIEWERDISPLAYMODE guess_display_mode(const unsigned char *data, int len)
const char *mime = gnome_vfs_get_mime_type_for_data(data, len);
- if (g_strncasecmp (mime, "image/", 6)==0)
+ if (g_ascii_strncasecmp (mime, "image/", 6)==0)
return DISP_MODE_IMAGE;
/* Hex File ? */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]