summaryrefslogtreecommitdiff
path: root/daemon/gvfsreadchannel.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/gvfsreadchannel.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/gvfsreadchannel.c')
-rw-r--r--daemon/gvfsreadchannel.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/daemon/gvfsreadchannel.c b/daemon/gvfsreadchannel.c
index f653d5d3..04783bd5 100644
--- a/daemon/gvfsreadchannel.c
+++ b/daemon/gvfsreadchannel.c
@@ -27,7 +27,6 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
-#include <unistd.h>
#include <fcntl.h>
#include <glib.h>
@@ -65,10 +64,6 @@ static GVfsJob *read_channel_readahead (GVfsChannel *channel,
static void
g_vfs_read_channel_finalize (GObject *object)
{
- GVfsReadChannel *read_channel;
-
- read_channel = G_VFS_READ_CHANNEL (object);
-
if (G_OBJECT_CLASS (g_vfs_read_channel_parent_class)->finalize)
(*G_OBJECT_CLASS (g_vfs_read_channel_parent_class)->finalize) (object);
}
@@ -177,7 +172,7 @@ read_channel_handle_request (GVfsChannel *channel,
default:
g_set_error (error, G_IO_ERROR,
G_IO_ERROR_FAILED,
- "Unknown stream command %d\n", command);
+ "Unknown stream command %"G_GINT32_FORMAT"\n", command);
break;
}