# HG changeset patch # User Juanma Barranquero # Date 1285748320 -7200 # Node ID 12f445671c170c1462c90322a054c2dfd4ba299a # Parent 35c472420ce60f2d5f5e1840d1806eb4e83e327a * emacsclient.c (main): Remove unused variables. (start_daemon_and_retry_set_socket): Use EXIT_FAILURE. diff -r 35c472420ce6 -r 12f445671c17 lib-src/ChangeLog --- 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 + + * 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 -r 35c472420ce6 -r 12f445671c17 lib-src/emacsclient.c --- 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, " ");