summaryrefslogtreecommitdiff
path: root/test
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 /test
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 'test')
-rw-r--r--test/benchmark-posix-big-files.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/benchmark-posix-big-files.c b/test/benchmark-posix-big-files.c
index 875dd233..d8061cba 100644
--- a/test/benchmark-posix-big-files.c
+++ b/test/benchmark-posix-big-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));