diff options
author | Alexander Larsson <alexl@redhat.com> | 2007-10-25 12:27:28 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-10-25 12:27:28 +0000 |
commit | ce5ac44208adee3efb5216c7a35b436538101dd8 (patch) | |
tree | 25a9a21cf070e6eb6d2082c79a8a848ab016138b /client/smburi.c | |
parent | b43a67248d56a4ad0bdc9ebcbe6e343ca6c280a0 (diff) | |
download | gvfs-ce5ac44208adee3efb5216c7a35b436538101dd8.tar.gz |
Make to_uri_scheme return const string.
2007-10-25 Alexander Larsson <alexl@redhat.com>
* client/smburi.c:
* common/gvfsurimapper.[ch]:
Make to_uri_scheme return const string.
* client/gdaemonfile.[ch]:
* client/gdaemonvfs.[ch]:
Add _g_daemon_vfs_mountspec_has_uri_scheme and use it to
implement g_file_has_uri_scheme
svn path=/trunk/; revision=994
Diffstat (limited to 'client/smburi.c')
-rw-r--r-- | client/smburi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/smburi.c b/client/smburi.c index 2cdbcd8b..59b40932 100644 --- a/client/smburi.c +++ b/client/smburi.c @@ -268,15 +268,16 @@ smb_to_uri (GVfsUriMapper *mapper, return s; } -static gchar * +static const char * smb_to_uri_scheme (GVfsUriMapper *mapper, GMountSpec *spec) { const gchar *type = g_mount_spec_get_type (spec); + if (strcmp ("smb-network", type) == 0 || strcmp ("smb-server", type) == 0 || strcmp ("smb-share", type) == 0) - return g_strdup ("smb"); + return "smb"; else return NULL; } |