summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendtest.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/gvfsbackendtest.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/gvfsbackendtest.c')
-rw-r--r--daemon/gvfsbackendtest.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/daemon/gvfsbackendtest.c b/daemon/gvfsbackendtest.c
index 5ca94be3..b0fb28e4 100644
--- a/daemon/gvfsbackendtest.c
+++ b/daemon/gvfsbackendtest.c
@@ -40,15 +40,11 @@
#include "gvfsjobqueryinfo.h"
#include "gvfsjobenumerate.h"
-G_DEFINE_TYPE (GVfsBackendTest, g_vfs_backend_test, G_VFS_TYPE_BACKEND);
+G_DEFINE_TYPE (GVfsBackendTest, g_vfs_backend_test, G_VFS_TYPE_BACKEND)
static void
g_vfs_backend_test_finalize (GObject *object)
{
- GVfsBackendTest *backend;
-
- backend = G_VFS_BACKEND_TEST (object);
-
if (G_OBJECT_CLASS (g_vfs_backend_test_parent_class)->finalize)
(*G_OBJECT_CLASS (g_vfs_backend_test_parent_class)->finalize) (object);
}
@@ -196,7 +192,7 @@ try_read (GVfsBackend *backend,
{
guint tag;
- g_print ("read (%"G_GSSIZE_FORMAT")\n", bytes_requested);
+ g_print ("read (%"G_GSIZE_FORMAT")\n", bytes_requested);
tag = g_timeout_add (0, read_idle_cb, job);
G_VFS_JOB (job)->backend_data = GINT_TO_POINTER (tag);
@@ -216,7 +212,7 @@ do_seek_on_read (GVfsBackend *backend,
int fd;
off_t final_offset;
- g_print ("seek_on_read (%d, %d)\n", (int)offset, type);
+ g_print ("seek_on_read (%d, %u)\n", (int)offset, type);
switch (type)
{