Commit 952b838f authored by rswindell's avatar rswindell
Browse files

Move all the remaining status_startup bits inside the #ifdef __unix__ block

since it's not defined otherwise. Not sure if this ways intended to be
included in Windows builds or not.
parent 22b4401c
......@@ -1443,6 +1443,7 @@ int main(int argc, char** argv)
#endif
#ifdef __unix__
/* Initialize status startup structure */
memset(&status_startup,0,sizeof(status_startup));
status_startup.size=sizeof(status_startup);
......@@ -1455,13 +1456,12 @@ int main(int argc, char** argv)
status_startup.thread_up=thread_up;
status_startup.socket_open=socket_open;
status_startup.client_on=client_on;
#ifdef __unix__
status_startup.seteuid=do_seteuid;
status_startup.setuid=do_setuid;
status_startup.clients=status_status_clients;
status_startup.status=status_status_status; // Heh.
#endif
strcpy(status_startup.ctrl_dir,ctrl_dir);
#endif
/* Initialize FTP startup structure */
memset(&ftp_startup,0,sizeof(ftp_startup));
......
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