Ignore:
Timestamp:
Oct 21, 2011, 5:13:04 PM (14 years ago)
Author:
dmik
Message:

Common compiler warnings and errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/kernel32/time.cpp

    r21302 r21732  
    4040//File time (UTC) to MS-DOS date & time values (also UTC)
    4141//******************************************************************************
    42 BOOL WIN32API FileTimeToDosDateTime(const FILETIME *lpFileTime, LPWORD lpDosDate, 
     42BOOL WIN32API FileTimeToDosDateTime(const FILETIME *lpFileTime, LPWORD lpDosDate,
    4343                                    LPWORD lpDosTime)
    4444{
     
    6060        return FALSE;
    6161    }
    62     return O32_FileTimeToLocalFileTime(lpFileTime, lpLocalTime); 
     62    return O32_FileTimeToLocalFileTime(lpFileTime, lpLocalTime);
    6363}
    6464//******************************************************************************
    6565//Local time to File time (UTC)
    6666//******************************************************************************
    67 BOOL WIN32API LocalFileTimeToFileTime(const FILETIME *lpLocalFileTime, 
     67BOOL WIN32API LocalFileTimeToFileTime(const FILETIME *lpLocalFileTime,
    6868                                      LPFILETIME lpFileTime)
    6969{
     
    9898}
    9999//******************************************************************************
    100 //MS-DOS date & time values (UTC) to File time (also UTC) 
     100//MS-DOS date & time values (UTC) to File time (also UTC)
    101101//******************************************************************************
    102102BOOL WIN32API DosDateTimeToFileTime(WORD wDosDate, WORD wDosTime, LPFILETIME pFileTime)
    103103{
    104104    dprintf(("%x %x", wDosDate, wDosTime));
    105    
     105
    106106    if(pFileTime == NULL) {
    107107        SetLastError(ERROR_INVALID_PARAMETER);
     
    117117}
    118118//******************************************************************************
    119 //The GetLocalTime function retrieves the current local date and time. 
     119//The GetLocalTime function retrieves the current local date and time.
    120120//(in local time)
    121121//******************************************************************************
     
    130130}
    131131//******************************************************************************
    132 //The SetLocalTime function sets the current local time and date. 
     132//The SetLocalTime function sets the current local time and date.
    133133//(in local time)
    134134//******************************************************************************
     
    143143}
    144144//******************************************************************************
    145 //The GetSystemTime function retrieves the current system date and time. 
     145//The GetSystemTime function retrieves the current system date and time.
    146146//The system time is expressed in Coordinated Universal Time (UTC).
    147147//******************************************************************************
     
    157157}
    158158//******************************************************************************
    159 //The SetSystemTime function sets the current system time and date. 
     159//The SetSystemTime function sets the current system time and date.
    160160//The system time is expressed in Coordinated Universal Time (UCT).
    161161//******************************************************************************
     
    185185}
    186186//******************************************************************************
    187 static const LPSTR szTZBias           = "Bias";
    188 static const LPSTR szTZActiveTimeBias = "ActiveTimeBias";
    189 
    190 static const LPWSTR szTZStandardName  = (LPWSTR)L"StandardName";
    191 static const LPSTR szTZStandardBias   = "StandardBias";
    192 static const LPSTR szTZStandardStart  = "StandardStart";
    193 
    194 static const LPWSTR szTZDaylightName  = (LPWSTR)L"DaylightName";
    195 static const LPSTR szTZDaylightBias   = "DaylightBias";
    196 static const LPSTR szTZDaylightStart  = "DaylightStart";
    197 static const LPSTR KEY_WINDOWS_TZ     = "SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation";
     187static const LPCSTR szTZBias           = "Bias";
     188static const LPCSTR szTZActiveTimeBias = "ActiveTimeBias";
     189
     190static const LPCWSTR szTZStandardName  = (LPCWSTR)L"StandardName";
     191static const LPCSTR szTZStandardBias   = "StandardBias";
     192static const LPCSTR szTZStandardStart  = "StandardStart";
     193
     194static const LPCWSTR szTZDaylightName  = (LPCWSTR)L"DaylightName";
     195static const LPCSTR szTZDaylightBias   = "DaylightBias";
     196static const LPCSTR szTZDaylightStart  = "DaylightStart";
     197static const LPCSTR KEY_WINDOWS_TZ     = "SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation";
    198198//******************************************************************************
    199199DWORD WIN32API GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZone)
Note: See TracChangeset for help on using the changeset viewer.