Commit 571512de authored by Eli Zaretskii's avatar Eli Zaretskii

(main): Remove unused local variable statbfr.

(main) <homedir>: Make its declaration conditional on
SERVER_HOME_DIR, to avoid compiler warnings.
parent 317ad01e
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment