Changeset 183


Ignore:
Timestamp:
Apr 30, 2009, 9:19:59 AM (11 years ago)
Author:
Yuri Dario
Message:

Fix compiler warnings.

Location:
branches/client-1.5/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/client-1.5/src/ndpsmb.c

    r180 r183  
    2222#include <stdlib.h>
    2323#include <stdarg.h>
     24#include <string.h>
    2425#include <time.h>
    2526
     
    8889}
    8990
    90 void fsphDosDateToUnixTime( FDATE fdate, FTIME ftime, unsigned long* time)
     91void fsphDosDateToUnixTime( FDATE fdate, FTIME ftime, ULONG* time)
    9192{
    9293    struct tm gmtime = { 0 };
     
    103104
    104105    *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));
    106107    gmt = localtime( (time_t*) time);
    107108    if (gmt->tm_isdst>0) {
     
    109110        *time += 3600;
    110111    }
    111     debug_printf( "fsphDosDateToUnixTime time2 %d %s", *time, ctime( time));
     112    debug_printf( "fsphDosDateToUnixTime time2 %d %s", *time, ctime( (time_t*)time));
    112113}
    113114
     
    332333        fsphUnixTimeToDosDate(finfo->atime, &stat.fdateLastAccess, &stat.ftimeLastAccess);
    333334        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));
    335336        debug_printf( "ftimeLastAccess %02d:%02d:%02d\n", stat.ftimeLastWrite.hours, stat.ftimeLastWrite.minutes, stat.ftimeLastWrite.twosecs*2);
    336337
     
    408409        int rc = NO_ERROR;
    409410        unsigned long t;
    410         const unsigned char * q = NULL;
     411        const CHAR * q = NULL;
    411412        int defaultPassword = 1;
    412413
  • branches/client-1.5/src/util.c

    r151 r183  
    2424#include <errno.h>
    2525#include <stdlib.h>
     26#include <string.h>
    2627
    2728#include "smbwrp.h"
Note: See TracChangeset for help on using the changeset viewer.