changeset 34953:71ff4d0af84f

(main): Remove unused local variable statbfr. (main) <homedir>: Make its declaration conditional on SERVER_HOME_DIR, to avoid compiler warnings.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 02 Jan 2001 13:52:48 +0000
parents a3e7758ab661
children ff4771c51345
files lib-src/emacsclient.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/emacsclient.c	Tue Jan 02 13:52:04 2001 +0000
+++ b/lib-src/emacsclient.c	Tue Jan 02 13:52:48 2001 +0000
@@ -253,7 +253,10 @@
   int s, i;
   FILE *out, *in;
   struct sockaddr_un server;
-  char *homedir, *cwd, *str;
+#ifdef SERVER_HOME_DIR
+  char *homedir;
+#endif
+  char *cwd, *str;
   char string[BUFSIZ];
 
   progname = argv[0];
@@ -297,7 +300,6 @@
 
 #ifndef SERVER_HOME_DIR
   {
-    struct stat statbfr;
     int sock_status = 0;
 
     sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);