Changeset 183 for branches/client-1.5/src
- Timestamp:
- Apr 30, 2009, 11:19:59 AM (16 years ago)
- Location:
- branches/client-1.5/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/client-1.5/src/ndpsmb.c
r180 r183 22 22 #include <stdlib.h> 23 23 #include <stdarg.h> 24 #include <string.h> 24 25 #include <time.h> 25 26 … … 88 89 } 89 90 90 void fsphDosDateToUnixTime( FDATE fdate, FTIME ftime, unsigned long* time)91 void fsphDosDateToUnixTime( FDATE fdate, FTIME ftime, ULONG* time) 91 92 { 92 93 struct tm gmtime = { 0 }; … … 103 104 104 105 *time = mktime( &gmtime); 105 debug_printf( "fsphDosDateToUnixTime time1 %d %s", *time, ctime( time));106 debug_printf( "fsphDosDateToUnixTime time1 %d %s", *time, ctime( (time_t*)time)); 106 107 gmt = localtime( (time_t*) time); 107 108 if (gmt->tm_isdst>0) { … … 109 110 *time += 3600; 110 111 } 111 debug_printf( "fsphDosDateToUnixTime time2 %d %s", *time, ctime( time));112 debug_printf( "fsphDosDateToUnixTime time2 %d %s", *time, ctime( (time_t*)time)); 112 113 } 113 114 … … 332 333 fsphUnixTimeToDosDate(finfo->atime, &stat.fdateLastAccess, &stat.ftimeLastAccess); 333 334 debug_printf( "fname %s\n", finfo->fname); 334 debug_printf( "mtime %d %s", finfo->mtime, ctime( &finfo->mtime));335 debug_printf( "mtime %d %s", finfo->mtime, ctime( (time_t*)&finfo->mtime)); 335 336 debug_printf( "ftimeLastAccess %02d:%02d:%02d\n", stat.ftimeLastWrite.hours, stat.ftimeLastWrite.minutes, stat.ftimeLastWrite.twosecs*2); 336 337 … … 408 409 int rc = NO_ERROR; 409 410 unsigned long t; 410 const unsigned char* q = NULL;411 const CHAR * q = NULL; 411 412 int defaultPassword = 1; 412 413 -
branches/client-1.5/src/util.c
r151 r183 24 24 #include <errno.h> 25 25 #include <stdlib.h> 26 #include <string.h> 26 27 27 28 #include "smbwrp.h"
Note:
See TracChangeset
for help on using the changeset viewer.