From 53ff0fe38e8f29fd4492eff2e652988608a30c45 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Fri, 3 May 2002 14:02:23 +0000 Subject: [PATCH] removed another warning. 2002-05-03 Sven Neumann * plug-ins/tools/tool-safe-mode.c: removed another warning. --- ChangeLog | 4 ++++ plug-ins/tools/tool-safe-mode.c | 13 ++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 836c7681a1..9df9090fe9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-05-03 Sven Neumann + + * plug-ins/tools/tool-safe-mode.c: removed another warning. + 2002-05-03 Michael Natterer * devel-docs/Makefile.am diff --git a/plug-ins/tools/tool-safe-mode.c b/plug-ins/tools/tool-safe-mode.c index d8ce50e6ae..139e490709 100644 --- a/plug-ins/tools/tool-safe-mode.c +++ b/plug-ins/tools/tool-safe-mode.c @@ -68,7 +68,6 @@ tool_safe_mode_init (const gchar *tool_plug_in_path) const gchar *dir_ent; struct stat filestat; - #ifdef __EMX__ /* * Change drive so opendir works. @@ -78,20 +77,20 @@ tool_safe_mode_init (const gchar *tool_plug_in_path) _chdrive (tool_plug_in_path[0]); } #endif - g_message ("%s", tool_plug_in_path); + + g_message ("tool_plug_in_path: %s", tool_plug_in_path); path = gimp_path_parse (tool_plug_in_path, 16, TRUE, NULL); - g_message ("%p", path); for (list = path; list; list = g_list_next (list)) { - g_message("reading directory %s", list->data); - /* Open directory */ + g_message ("reading datafiles directory '%s'", (gchar *) list->data); + dir = g_dir_open ((gchar *) list->data, 0, NULL); if (!dir) { - g_message ("error reading datafiles directory \"%s\"", + g_message ("error reading datafiles directory '%s'", (gchar *) list->data); } else @@ -106,7 +105,7 @@ tool_safe_mode_init (const gchar *tool_plug_in_path) if (! err && !S_ISDIR (filestat.st_mode)) { - g_message("loading tool %s\n", filename); + g_message ("loading tool %s\n", filename); gimp_tool_module_new (filename, safe_mode_register_tool, NULL);