Commit e0acb45b authored by Nick Mathewson's avatar Nick Mathewson 🎨
Browse files

r11650@catbus: nickm | 2007-02-05 17:02:54 -0500

 Resolve (I hope) remaining nt service compilation issues.


svn:r9489
parent d930440a
......@@ -69,7 +69,6 @@ int has_completed_circuit=0;
#ifdef MS_WINDOWS
#define MS_WINDOWS_SERVICE
#includ "Windows.h"
#endif
#ifdef MS_WINDOWS_SERVICE
......@@ -2156,7 +2155,7 @@ nt_service_install(int argc, char **argv)
char *command;
char *errmsg;
const char *user_acct = GENSRV_USERACCT;
int i,r;
int i;
SID_NAME_USE sidUse;
if (nt_service_loadlibrary()<0)
......@@ -2172,7 +2171,7 @@ nt_service_install(int argc, char **argv)
return -1;
}
for (i=1; i < argc; ++i) {
if (!strcmp(i, "--user") && i+1<argc) {
if (!strcmp(argv[i], "--user") && i+1<argc) {
user_acct = argv[i+1];
++i;
}
......@@ -2373,7 +2372,7 @@ tor_main(int argc, char *argv[])
fprintf(stderr,
"The %s option is deprecated; use \"--service install\" instead.",
argv[1]);
return nt_service_install();
return nt_service_install(argc, argv);
}
if (!strcmp(argv[1], "-remove") || !strcmp(argv[1], "--remove")) {
fprintf(stderr,
......
Supports Markdown
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