X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fservices%2Ftcpsvcs%2Ftcpsvcs.c;h=809cc05724dc969e1e94c6d2499b9017288ef32d;hp=c8bbffddf6284fa6559df44e3685b928e30eb8f8;hb=6ae404c48035d780ee563c2bee5c0ac6e31822e6;hpb=b659ca827a0cc8a2866ce32770e5fd65f56d2d7b diff --git a/reactos/services/tcpsvcs/tcpsvcs.c b/reactos/services/tcpsvcs/tcpsvcs.c index c8bbffddf62..809cc05724d 100644 --- a/reactos/services/tcpsvcs/tcpsvcs.c +++ b/reactos/services/tcpsvcs/tcpsvcs.c @@ -52,7 +52,7 @@ Services[NUM_SERVICES] = int -main(int argc, char *argv[]) +main(void) { SERVICE_TABLE_ENTRY ServiceTable[] = { @@ -245,12 +245,10 @@ CreateServers() } -/* LogEvent is similar to the ReportError function used elsewhere - For a service, however, we ReportEvent rather than write to standard - error. Eventually, this function should go into the utility - library. */ +/* This is a temperary log system until our eventlog is in place */ + VOID -LogEvent (LPCTSTR UserMessage, DWORD ExitCode, BOOL PrintErrorMsg) +LogEvent (LPCTSTR UserMessage, INT ExitCode, BOOL PrintErrorMsg) { DWORD eMsgLen, ErrNum = GetLastError (); LPTSTR lpvSysMsg; @@ -265,7 +263,7 @@ LogEvent (LPCTSTR UserMessage, DWORD ExitCode, BOOL PrintErrorMsg) ErrNum, MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&lpvSysMsg, 0, NULL); - _stprintf(MessageBuffer, _T("%s %s ErrNum = %lu. ExitCode = %lu."), + _stprintf(MessageBuffer, _T("%s %s ErrNum = %lu. ExitCode = %d."), UserMessage, lpvSysMsg, ErrNum, ExitCode); HeapFree(GetProcessHeap (), 0, lpvSysMsg); }