glib r6710 - trunk/gio
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r6710 - trunk/gio
- Date: Fri, 14 Mar 2008 11:15:50 +0000 (GMT)
Author: alexl
Date: Fri Mar 14 11:15:49 2008
New Revision: 6710
URL: http://svn.gnome.org/viewvc/glib?rev=6710&view=rev
Log:
2008-03-14 Alexander Larsson <alexl redhat com>
* gunixmounts.c:
(guess_mount_type):
Avoid redudant tests (#521851)
Patch from Josselin Mouette
Modified:
trunk/gio/ChangeLog
trunk/gio/gunixmounts.c
Modified: trunk/gio/gunixmounts.c
==============================================================================
--- trunk/gio/gunixmounts.c (original)
+++ trunk/gio/gunixmounts.c Fri Mar 14 11:15:49 2008
@@ -1598,27 +1598,10 @@
{
basename = g_path_get_basename (mount_path);
- if (g_str_has_prefix (basename, "cdrom") ||
+ if (g_str_has_prefix (basename, "cdr") ||
g_str_has_prefix (basename, "cdwriter") ||
g_str_has_prefix (basename, "burn") ||
- g_str_has_prefix (basename, "cdr") ||
- g_str_has_prefix (basename, "cdrw") ||
- g_str_has_prefix (basename, "dvdrom") ||
- g_str_has_prefix (basename, "dvdram") ||
- g_str_has_prefix (basename, "dvdr") ||
- g_str_has_prefix (basename, "dvdrw") ||
- g_str_has_prefix (basename, "cdrom_dvdrom") ||
- g_str_has_prefix (basename, "cdrom_dvdram") ||
- g_str_has_prefix (basename, "cdrom_dvdr") ||
- g_str_has_prefix (basename, "cdrom_dvdrw") ||
- g_str_has_prefix (basename, "cdr_dvdrom") ||
- g_str_has_prefix (basename, "cdr_dvdram") ||
- g_str_has_prefix (basename, "cdr_dvdr") ||
- g_str_has_prefix (basename, "cdr_dvdrw") ||
- g_str_has_prefix (basename, "cdrw_dvdrom") ||
- g_str_has_prefix (basename, "cdrw_dvdram") ||
- g_str_has_prefix (basename, "cdrw_dvdr") ||
- g_str_has_prefix (basename, "cdrw_dvdrw"))
+ g_str_has_prefix (basename, "dvdr"))
type = G_UNIX_MOUNT_TYPE_CDROM;
else if (g_str_has_prefix (basename, "floppy"))
type = G_UNIX_MOUNT_TYPE_FLOPPY;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]