summaryrefslogtreecommitdiff
path: root/daemon/gvfsjobopenforwrite.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-02-19 09:41:06 +0000
committerAlexander Larsson <alexl@src.gnome.org>2008-02-19 09:41:06 +0000
commitb64547deb808046b8bac687242ab777c0bf0d73a (patch)
tree3c7b9cb07e93beabc2f2efbe879ee279a525c449 /daemon/gvfsjobopenforwrite.c
parent31a620e564b9edb751c19c71193ca73123faddb4 (diff)
downloadgvfs-b64547deb808046b8bac687242ab777c0bf0d73a.tar.gz
Code cleanup from Kjartan: Removes unused code/variables. Uses right
2008-02-19 Alexander Larsson <alexl@redhat.com> * lots of *.c files: Code cleanup from Kjartan: Removes unused code/variables. Uses right printf types Uses non-deprecated dbus calls. Removes spurious ; and , deleted extra checks for NULL for g_free svn path=/trunk/; revision=1302
Diffstat (limited to 'daemon/gvfsjobopenforwrite.c')
-rw-r--r--daemon/gvfsjobopenforwrite.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/daemon/gvfsjobopenforwrite.c b/daemon/gvfsjobopenforwrite.c
index 23adfae3..21e492eb 100644
--- a/daemon/gvfsjobopenforwrite.c
+++ b/daemon/gvfsjobopenforwrite.c
@@ -35,7 +35,7 @@
#include "gdbusutils.h"
#include "gvfsdaemonutils.h"
-G_DEFINE_TYPE (GVfsJobOpenForWrite, g_vfs_job_open_for_write, G_VFS_TYPE_JOB_DBUS);
+G_DEFINE_TYPE (GVfsJobOpenForWrite, g_vfs_job_open_for_write, G_VFS_TYPE_JOB_DBUS)
static void run (GVfsJob *job);
static gboolean try (GVfsJob *job);
@@ -267,7 +267,6 @@ create_reply (GVfsJob *job,
GError *error;
int remote_fd;
int fd_id;
- gboolean res;
dbus_bool_t can_seek;
guint64 initial_offset;
@@ -292,11 +291,11 @@ create_reply (GVfsJob *job,
reply = dbus_message_new_method_return (message);
can_seek = open_job->can_seek;
initial_offset = open_job->initial_offset;
- res = dbus_message_append_args (reply,
- DBUS_TYPE_UINT32, &fd_id,
- DBUS_TYPE_BOOLEAN, &can_seek,
- DBUS_TYPE_UINT64, &initial_offset,
- DBUS_TYPE_INVALID);
+ dbus_message_append_args (reply,
+ DBUS_TYPE_UINT32, &fd_id,
+ DBUS_TYPE_BOOLEAN, &can_seek,
+ DBUS_TYPE_UINT64, &initial_offset,
+ DBUS_TYPE_INVALID);
g_vfs_channel_set_backend_handle (G_VFS_CHANNEL (channel), open_job->backend_handle);
open_job->backend_handle = NULL;