From: Juanma Barranquero Date: Wed, 29 Sep 2010 08:18:40 +0000 (+0200) Subject: * emacsclient.c (main): Remove unused variables. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~47^2~11 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6ab88e02c99b2cc07402dc789f501ca68a2f4b41;p=emacs.git * emacsclient.c (main): Remove unused variables. (start_daemon_and_retry_set_socket): Use EXIT_FAILURE. --- diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 469a9c96780..2adb909c64a 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,8 @@ +2010-09-29 Juanma Barranquero + + * emacsclient.c (main): Remove unused variables. + (start_daemon_and_retry_set_socket): Use EXIT_FAILURE. + 2010-09-25 Ulrich Mueller * etags.c (compressors, print_language_names): Support xz compression. diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index e8ffbe7c562..1f96c481129 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -1476,7 +1476,7 @@ start_daemon_and_retry_set_socket (void) else if (dpid < 0) { fprintf (stderr, "Error: Cannot fork!\n"); - exit (1); + exit (EXIT_FAILURE); } else { @@ -1576,8 +1576,6 @@ main (int argc, char **argv) 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, " ");