From 74b86b4ae65d77068aa64336f1c36c3a75e50ab4 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Tue, 16 Aug 2005 15:49:48 +0000 Subject: Fix build warnings and compilation with dbus 0.35.2 --- (limited to 'shell/ev-utils.c') 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 #include #include +#include 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; -- cgit v0.9.1