summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@katamail.com>2009-02-24 11:25:46 +0000
committerPaolo Borelli <pborelli@src.gnome.org>2009-02-24 11:25:46 +0000
commitf96af80623157ff0cebf06f076eb1064dad1167e (patch)
treec30049078df6ebf246d3c49defa664bbc9a7b2da /test
parentd9dd6991c5921fce812b444c779efe05f6dc28ff (diff)
downloadgvfs-f96af80623157ff0cebf06f076eb1064dad1167e.tar.gz
Always use g_strerror
2009-02-24 Paolo Borelli <pborelli@katamail.com> * test/benchmark-posix-small-files.c: * test/benchmark-posix-big-files.c: * daemon/trashlib/dirwatch.c: * daemon/gvfsbackendsmbbrowse.c: * client/gvfsfusedaemon.c: Always use g_strerror svn path=/trunk/; revision=2247
Diffstat (limited to 'test')
-rw-r--r--test/benchmark-posix-big-files.c10
-rw-r--r--test/benchmark-posix-small-files.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/test/benchmark-posix-big-files.c b/test/benchmark-posix-big-files.c
index 8c05e5f7..86b3c349 100644
--- a/test/benchmark-posix-big-files.c
+++ b/test/benchmark-posix-big-files.c
@@ -72,7 +72,7 @@ create_file (const gchar *base_dir)
output_fd = open (scratch_file, O_WRONLY | O_CREAT | O_TRUNC, 0777);
if (output_fd < 0)
{
- g_printerr ("Failed to create scratch file: %s\n", strerror (errno));
+ g_printerr ("Failed to create scratch file: %s\n", g_strerror (errno));
g_free (scratch_file);
return NULL;
}
@@ -92,7 +92,7 @@ create_file (const gchar *base_dir)
continue;
}
- g_printerr ("Failed to populate scratch file: %s\n", strerror (errno));
+ g_printerr ("Failed to populate scratch file: %s\n", g_strerror (errno));
close (output_fd);
g_free (scratch_file);
return NULL;
@@ -112,7 +112,7 @@ read_file (const gchar *scratch_file)
input_fd = open (scratch_file, O_RDONLY);
if (input_fd < 0)
{
- g_printerr ("Failed to read back scratch file: %s\n", strerror (errno));
+ g_printerr ("Failed to read back scratch file: %s\n", g_strerror (errno));
return;
}
@@ -130,7 +130,7 @@ read_file (const gchar *scratch_file)
continue;
}
- g_printerr ("Failed to read back scratch file: %s\n", strerror (errno));
+ g_printerr ("Failed to read back scratch file: %s\n", g_strerror (errno));
close (input_fd);
return;
}
@@ -144,7 +144,7 @@ delete_file (const gchar *scratch_file)
{
if (unlink (scratch_file) < 0)
{
- g_printerr ("Failed to delete scratch file: %s\n", strerror (errno));
+ g_printerr ("Failed to delete scratch file: %s\n", g_strerror (errno));
}
}
diff --git a/test/benchmark-posix-small-files.c b/test/benchmark-posix-small-files.c
index 1877555d..e3a99cfc 100644
--- a/test/benchmark-posix-small-files.c
+++ b/test/benchmark-posix-small-files.c
@@ -72,7 +72,7 @@ create_file (const gchar *base_dir)
output_fd = open (scratch_file, O_WRONLY | O_CREAT | O_TRUNC, 0777);
if (output_fd < 0)
{
- g_printerr ("Failed to create scratch file: %s\n", strerror (errno));
+ g_printerr ("Failed to create scratch file: %s\n", g_strerror (errno));
g_free (scratch_file);
return NULL;
}
@@ -92,7 +92,7 @@ create_file (const gchar *base_dir)
continue;
}
- g_printerr ("Failed to populate scratch file: %s\n", strerror (errno));
+ g_printerr ("Failed to populate scratch file: %s\n", g_strerror (errno));
close (output_fd);
g_free (scratch_file);
return NULL;
@@ -112,7 +112,7 @@ read_file (const gchar *scratch_file)
input_fd = open (scratch_file, O_RDONLY);
if (input_fd < 0)
{
- g_printerr ("Failed to read back scratch file: %s\n", strerror (errno));
+ g_printerr ("Failed to read back scratch file: %s\n", g_strerror (errno));
return;
}
@@ -130,7 +130,7 @@ read_file (const gchar *scratch_file)
continue;
}
- g_printerr ("Failed to read back scratch file: %s\n", strerror (errno));
+ g_printerr ("Failed to read back scratch file: %s\n", g_strerror (errno));
close (input_fd);
return;
}
@@ -144,7 +144,7 @@ delete_file (const gchar *scratch_file)
{
if (unlink (scratch_file) < 0)
{
- g_printerr ("Failed to delete scratch file: %s\n", strerror (errno));
+ g_printerr ("Failed to delete scratch file: %s\n", g_strerror (errno));
}
}