summaryrefslogtreecommitdiff
path: root/daemon/trashlib
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 /daemon/trashlib
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 'daemon/trashlib')
-rw-r--r--daemon/trashlib/dirwatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/trashlib/dirwatch.c b/daemon/trashlib/dirwatch.c
index d64992c7..255ab75e 100644
--- a/daemon/trashlib/dirwatch.c
+++ b/daemon/trashlib/dirwatch.c
@@ -86,7 +86,6 @@ struct OPAQUE_TYPE__DirWatch
#ifdef DIR_WATCH_DEBUG
#include <errno.h>
-#include <string.h>
#endif
static gboolean
@@ -104,8 +103,9 @@ dir_exists (GFile *file)
#ifdef DIR_WATCH_DEBUG
g_print (" lstat ('%s') -> is%s a directory (%s)\n",
- path, result ? "" : " not", strerror (errno));
+ path, result ? "" : " not", g_strerror (errno));
#endif
+
g_free (path);
return result;