diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-02-19 09:41:06 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2008-02-19 09:41:06 +0000 |
commit | b64547deb808046b8bac687242ab777c0bf0d73a (patch) | |
tree | 3c7b9cb07e93beabc2f2efbe879ee279a525c449 /daemon/gvfsreadchannel.c | |
parent | 31a620e564b9edb751c19c71193ca73123faddb4 (diff) | |
download | gvfs-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.c | 7 |
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; } |