@@ -90,8 +90,8 @@ BOOL WINAPI ctrl_c_handler(
90
90
return TRUE;
91
91
}
92
92
93
- int main (int argc , char * * argv ) {
94
-
93
+ int wmain (int argc , wchar_t * * argv ) {
94
+
95
95
w32posix_initialize ();
96
96
load_config ();
97
97
if (!StartServiceCtrlDispatcherW (dispatch_table )) {
@@ -108,7 +108,7 @@ int main(int argc, char **argv) {
108
108
if (argc == 2 ) {
109
109
/*agent process is likely a spawned child*/
110
110
char * h = 0 ;
111
- h += atoi (* (argv + 1 ));
111
+ h += _wtoi (* (argv + 1 ));
112
112
if (h != 0 ) {
113
113
log_init ("ssh-agent" , config_log_level (), 1 , 0 );
114
114
agent_start (FALSE, TRUE, h );
@@ -146,7 +146,7 @@ int scm_start_service(DWORD num, LPWSTR* args) {
146
146
ZeroMemory (& service_status , sizeof (service_status ));
147
147
service_status .dwServiceType = SERVICE_WIN32_OWN_PROCESS ;
148
148
ReportSvcStatus (SERVICE_START_PENDING , NO_ERROR , 300 );
149
- ReportSvcStatus (SERVICE_RUNNING , NO_ERROR , 0 );
149
+ ReportSvcStatus (SERVICE_RUNNING , NO_ERROR , 0 );
150
150
log_init ("ssh-agent" , config_log_level (), 1 , 0 );
151
151
agent_start (FALSE, FALSE, 0 );
152
152
return 0 ;
0 commit comments