diff options
author | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-08-16 15:49:48 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-08-16 15:49:48 (GMT) |
commit | 74b86b4ae65d77068aa64336f1c36c3a75e50ab4 (patch) | |
tree | e2f3d8858160a15e2275893ea42e199d633623c4 /shell/ev-utils.c | |
parent | 6c31b780d425d1bd3d7e9f51e4efadefcf1d8551 (diff) |
Fix build warnings and compilation with dbus 0.35.2
Diffstat (limited to 'shell/ev-utils.c')
-rw-r--r-- | shell/ev-utils.c | 8 |
1 files changed, 2 insertions, 6 deletions
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; |