[gnome-terminal] Ignore chdir return value here



commit ae7dd9dbb2c8036018b4a8a557e035a80476d3ac
Author: chpe <chpe gnome org>
Date:   Sat Sep 4 22:50:01 2010 +0200

    Ignore chdir return value here

 src/terminal-screen.c |    2 +-
 src/terminal.c        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index d2281ce..ff34f00 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -223,7 +223,7 @@ cwd_of_pid (int pid)
               if (chdir (cwd_file) == 0)
                 {
                   working_dir = g_get_current_dir ();
-                  chdir (cwd);
+                  (void) chdir (cwd);
                 }
               g_free (cwd);
             }
diff --git a/src/terminal.c b/src/terminal.c
index 391a424..4925359 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -3,7 +3,7 @@
  * Copyright © 2002 Red Hat, Inc.
  * Copyright © 2002 Sun Microsystems
  * Copyright © 2003 Mariano Suarez-Alvarez
- * Copyright © 2008 Christian Persch
+ * Copyright © 2008, 2010 Christian Persch
  *
  * Gnome-terminal is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by



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