diff options
author | Alexander Larsson <alexl@redhat.com> | 2007-11-16 10:20:13 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-11-16 10:20:13 +0000 |
commit | 19b292e9d654286e4586f94d92ea2262f4d81af1 (patch) | |
tree | c2e0327ff6a7bf635527cd8ecb217e529407de99 /test/benchmark-posix-small-files.c | |
parent | 9fcf3c766bd2a85ccf01a67c4dfac4e491ca3c56 (diff) | |
download | gvfs-19b292e9d654286e4586f94d92ea2262f4d81af1.tar.gz |
Code cleanups from Kjartan Maraas.
2007-11-16 Alexander Larsson <alexl@redhat.com>
* client/gdaemonfile.c:
* client/gdaemonfileinputstream.c:
* client/gdaemonfileoutputstream.c:
* client/smburi.c:
* common/gdbusutils.c:
* common/gmountsource.c:
* daemon/gvfsbackendftp.c:
* daemon/gvfsbackendtrash.c:
* daemon/gvfsdaemon.c:
* daemon/gvfsjob.c:
* daemon/gvfsjobdbus.c:
* daemon/gvfsjobopenforwrite.h:
* daemon/mount.c:
* daemon/pty_open.c:
* test/benchmark-gvfs-big-files.c:
* test/benchmark-gvfs-small-files.c:
* test/benchmark-posix-small-files.c:
Code cleanups from Kjartan Maraas.
svn path=/trunk/; revision=1031
Diffstat (limited to 'test/benchmark-posix-small-files.c')
-rw-r--r-- | test/benchmark-posix-small-files.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/test/benchmark-posix-small-files.c b/test/benchmark-posix-small-files.c index 358df20e..76b14d61 100644 --- a/test/benchmark-posix-small-files.c +++ b/test/benchmark-posix-small-files.c @@ -62,10 +62,8 @@ static gchar * create_file (const gchar *base_dir) { gchar *scratch_file; - gchar *scratch_name; gint output_fd; gint pid; - GError *error = NULL; gchar buffer [BUFFER_SIZE]; gint i; @@ -110,7 +108,6 @@ static void read_file (const gchar *scratch_file) { gint input_fd; - GError *error = NULL; gint i; input_fd = open (scratch_file, O_RDONLY); @@ -146,8 +143,6 @@ read_file (const gchar *scratch_file) static void delete_file (const gchar *scratch_file) { - GError *error = NULL; - if (unlink (scratch_file) < 0) { g_printerr ("Failed to delete scratch file: %s\n", strerror (errno)); |