diff options
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | shell/ev-utils.c | 8 | ||||
-rw-r--r-- | shell/ev-window.c | 1 |
4 files changed, 15 insertions, 7 deletions
@@ -1,3 +1,14 @@ +2005-08-16 Nickolay V. Shmyrev <nshmyrev@yandex.ru> + + * shell/ev-utils.c: (set_umask_permissions), (write_to_temp_file): + * shell/ev-window.c: + Fix build warnings + +2005-08-16 Carlos Garcia Campos <carlosgc@gnome.org> + + * configure.ac: Update script to get dbus version. + Fix for the bug #313443. + 2005-08-16 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * shell/ev-window.c: (ev_window_cmd_escape): diff --git a/configure.ac b/configure.ac index 519474b..c0f0163 100644 --- a/configure.ac +++ b/configure.ac @@ -75,7 +75,7 @@ if test "x$enable_dbus" = "xyes" ; then AC_DEFINE([ENABLE_DBUS],[1],[Define if DBUS support is enabled]) - DBUS_VERSION=`$PKG_CONFIG --modversion dbus-glib-1 | sed 's/0.\([[0-9]]*\)/\1/'` + DBUS_VERSION=`$PKG_CONFIG --modversion dbus-glib-1 | sed 's/0\.\([[0-9]]*\)\.\?\([[0-9]]*\)/\1/'` AC_DEFINE_UNQUOTED(DBUS_VERSION, $DBUS_VERSION, [DBUS version.]) fi diff --git a/shell/ev-utils.c b/shell/ev-utils.c index 21563eb..9fc74c6 100644 --- a/shell/ev-utils.c +++ b/shell/ev-utils.c @@ -213,6 +213,7 @@ ev_print_region_contents (GdkRegion *region) #include <sys/types.h> #include <sys/wait.h> #include <string.h> +#include <glib/gstdio.h> static gboolean rename_file (const char *old_name, @@ -240,8 +241,6 @@ set_umask_permissions (int fd, * the umask in between the getting and the setting of the umask. * So we have to do the whole thing in a child process. */ - - int save_errno; pid_t pid; pid = fork (); @@ -276,9 +275,7 @@ set_umask_permissions (int fd, if (WIFEXITED (status)) { - save_errno = WEXITSTATUS (status); - - if (save_errno == 0) + if (WEXITSTATUS (status) == 0) { return TRUE; } @@ -309,7 +306,6 @@ write_to_temp_file (const gchar *contents, gchar *retval; FILE *file; gint fd; - int save_errno; retval = NULL; diff --git a/shell/ev-window.c b/shell/ev-window.c index 68174cc..d860d74 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -62,6 +62,7 @@ #include "ev-stock-icons.h" #include "ev-metadata-manager.h" #include "ev-file-helpers.h" +#include "ev-utils.h" #include <poppler.h> |