1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

(main): Remove unused local variable statbfr.

(main) <homedir>: Make its declaration conditional on
SERVER_HOME_DIR, to avoid compiler warnings.
This commit is contained in:
Eli Zaretskii 2001-01-02 13:52:48 +00:00
parent 317ad01ee7
commit 571512dece

View File

@ -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);