From 571512dece5a8820b7168200eef4341159140563 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 2 Jan 2001 13:52:48 +0000 Subject: [PATCH] (main): Remove unused local variable statbfr. (main) : Make its declaration conditional on SERVER_HOME_DIR, to avoid compiler warnings. --- lib-src/emacsclient.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index c4e01b616ff..03fe66598c8 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -253,7 +253,10 @@ main (argc, argv) 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 @@ main (argc, argv) #ifndef SERVER_HOME_DIR { - struct stat statbfr; int sock_status = 0; sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name); -- 2.39.2