[file-roller/gnome-2-32] fixed some compiler warnings



commit b2e1d8d500ce8eb8412b738b0f9221b83690ec99
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Nov 15 20:50:35 2010 +0100

    fixed some compiler warnings

 copy-n-paste/Makefile.am |    2 +-
 src/file-utils.c         |    4 ++--
 src/fr-archive.c         |    3 ++-
 3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/copy-n-paste/Makefile.am b/copy-n-paste/Makefile.am
index 1a8e01a..d07144d 100644
--- a/copy-n-paste/Makefile.am
+++ b/copy-n-paste/Makefile.am
@@ -1,7 +1,7 @@
 INCLUDES = -DGTK_DISABLE_DEPRECATED \
 	   -DGDK_DISABLE_DEPRECATED \
 	   -DG_DISABLE_DEPRECATED \
-	   -DGETTEXT_PACKAGE=NULL
+	   -UGETTEXT_PACKAGE
 
 noinst_LTLIBRARIES = libeggsmclient.la
 
diff --git a/src/file-utils.c b/src/file-utils.c
index 52adb84..de10931 100644
--- a/src/file-utils.c
+++ b/src/file-utils.c
@@ -954,8 +954,8 @@ get_temp_work_dir (const char *parent_folder)
 gboolean
 is_temp_work_dir (const char *dir)
 {
-	int i;
-	const char *folder;
+	int   i;
+	char *folder;
 
 	if (strncmp (dir, "file://", 7) == 0)
 		dir = dir + 7;
diff --git a/src/fr-archive.c b/src/fr-archive.c
index 1e79812..9ea784a 100644
--- a/src/fr-archive.c
+++ b/src/fr-archive.c
@@ -1370,7 +1370,8 @@ create_tmp_base_dir (const char *base_dir,
 
 	dir = g_build_filename (temp_dir, "/", dest_dir, NULL);
 	debug (DEBUG_INFO, "symlink %s --> %s\n", dir, base_dir);
-	symlink (base_dir, dir);
+	if (symlink (base_dir, dir) != 0)
+		g_warning ("Could not create the symbolic link '%s', pointing to '%s'", dir, base_dir);
 
 	g_free (dir);
 	g_free (dest_dir);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]