summaryrefslogtreecommitdiff
path: root/daemon/mount.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-08-02 11:00:07 +0000
committerChristian Persch <chpe@src.gnome.org>2008-08-02 11:00:07 +0000
commit4836abe602181cc92ce99ef7cb4a78ba9447a032 (patch)
treea624fc3742a2fd7dd37857c6127abc7e7ea4da7a /daemon/mount.c
parentad7695f9ccd2435b034094ad03aa229b4d4ba60e (diff)
downloadgvfs-4836abe602181cc92ce99ef7cb4a78ba9447a032.tar.gz
Use g_set_error_literal where appropriate. Bug #539167.
svn path=/trunk/; revision=1847
Diffstat (limited to 'daemon/mount.c')
-rw-r--r--daemon/mount.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/daemon/mount.c b/daemon/mount.c
index 519d8a66..75ef6be6 100644
--- a/daemon/mount.c
+++ b/daemon/mount.c
@@ -435,14 +435,14 @@ spawn_mount_message_function (DBusConnection *connection,
DBUS_TYPE_STRING, &error_message,
DBUS_TYPE_INVALID))
{
- g_set_error (&error, G_IO_ERROR, G_IO_ERROR_FAILED,
- "%s", _("Invalid arguments from spawned child"));
+ g_set_error_literal (&error, G_IO_ERROR, G_IO_ERROR_FAILED,
+ _("Invalid arguments from spawned child"));
mount_finish (data, error);
g_error_free (error);
}
else if (!succeeded)
{
- g_set_error (&error, G_IO_ERROR, G_IO_ERROR_FAILED, "%s", error_message);
+ g_set_error_literal (&error, G_IO_ERROR, G_IO_ERROR_FAILED, error_message);
mount_finish (data, error);
g_error_free (error);
}
@@ -472,8 +472,8 @@ spawn_mount (MountData *data)
error = NULL;
if (data->mountable->exec == NULL)
{
- g_set_error (&error, G_IO_ERROR, G_IO_ERROR_FAILED,
- "No exec key defined for mountpoint");
+ g_set_error_literal (&error, G_IO_ERROR, G_IO_ERROR_FAILED,
+ "No exec key defined for mountpoint");
mount_finish (data, error);
g_error_free (error);
}