Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4546 by maya, Thu Jul 28 08:58:28 2011 UTC revision 4551 by maya, Thu Jul 28 16:16:39 2011 UTC
# Line 892  void notify_verbose_message(PTInstVar pv Line 892  void notify_verbose_message(PTInstVar pv
892                               _S_IREAD | _S_IWRITE);                               _S_IREAD | _S_IWRITE);
893    
894                  if (file >= 0) {                  if (file >= 0) {
895                          SYSTEMTIME LocalTime;                          char *strtime = mctimelocal();
                         char strtime[29];  
                         char week[][4] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};  
                         char month[][4] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun",  
                                            "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};  
896                          DWORD processid;                          DWORD processid;
897                          char tmp[26];                          char tmp[26];
898    
                         GetLocalTime(&LocalTime);  
                         _snprintf_s(strtime, sizeof(strtime), _TRUNCATE,  
                                     "%s %s %02d %02d:%02d:%02d.%03d %04d",  
                                     week[LocalTime.wDayOfWeek],  
                                     month[LocalTime.wMonth-1],  
                                     LocalTime.wDay,  
                                     LocalTime.wHour,  
                                     LocalTime.wMinute,  
                                     LocalTime.wSecond,  
                                     LocalTime.wMilliseconds,  
                                     LocalTime.wYear);  
899                          _write(file, strtime, strlen(strtime));                          _write(file, strtime, strlen(strtime));
900                          GetWindowThreadProcessId(pvar->cv->HWin, &processid);                          GetWindowThreadProcessId(pvar->cv->HWin, &processid);
901                          _snprintf_s(tmp, sizeof(tmp), _TRUNCATE, " [%lu] ",processid);                          _snprintf_s(tmp, sizeof(tmp), _TRUNCATE, " [%lu] ",processid);

Legend:
Removed from v.4546  
changed lines
  Added in v.4551

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26