changeset 110643:12f445671c17

* emacsclient.c (main): Remove unused variables. (start_daemon_and_retry_set_socket): Use EXIT_FAILURE.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 29 Sep 2010 10:18:40 +0200
parents 35c472420ce6
children 22d8ea06b8c7
files lib-src/ChangeLog lib-src/emacsclient.c
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/ChangeLog	Tue Sep 28 21:25:59 2010 -0700
+++ b/lib-src/ChangeLog	Wed Sep 29 10:18:40 2010 +0200
@@ -1,3 +1,8 @@
+2010-09-29  Juanma Barranquero  <lekktu@gmail.com>
+
+	* emacsclient.c (main): Remove unused variables.
+	(start_daemon_and_retry_set_socket): Use EXIT_FAILURE.
+
 2010-09-25  Ulrich Mueller  <ulm@gentoo.org>
 
 	* etags.c (compressors, print_language_names): Support xz compression.
--- a/lib-src/emacsclient.c	Tue Sep 28 21:25:59 2010 -0700
+++ b/lib-src/emacsclient.c	Wed Sep 29 10:18:40 2010 +0200
@@ -1476,7 +1476,7 @@
   else if (dpid < 0)
     {
       fprintf (stderr, "Error: Cannot fork!\n");
-      exit (1);
+      exit (EXIT_FAILURE);
     }
   else
     {
@@ -1576,8 +1576,6 @@
       int i;
       for (i = 0; environ[i]; i++)
         {
-          char *name = xstrdup (environ[i]);
-          char *value = strchr (name, '=');
           send_to_emacs (emacs_socket, "-env ");
           quote_argument (emacs_socket, environ[i]);
           send_to_emacs (emacs_socket, " ");