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/oslibdos.cpp

    r21675 r21732  
    9898static ULONG crc32str(const char *psz);
    9999
    100 char* ODINHelperStripUNC(char* strUNC)
    101 {
    102     char *retStr = strUNC;
     100LPCSTR ODINHelperStripUNC(LPCSTR strUNC)
     101{
     102    LPCSTR retStr = strUNC;
    103103
    104104    if (!strUNC) return NULL;
     
    460460//******************************************************************************
    461461//******************************************************************************
    462 DWORD OSLibDosOpen(char *lpszFileName, DWORD flags)
     462DWORD OSLibDosOpen(LPCSTR lpszFileName, DWORD flags)
    463463{
    464464 APIRET rc;
     
    721721//******************************************************************************
    722722//******************************************************************************
    723 BOOL OSLibDosDelete(char *lpszFileName)
     723BOOL OSLibDosDelete(LPCSTR lpszFileName)
    724724{
    725725    APIRET rc;
     
    850850DWORD WIN32API GetEnvironmentVariableA(LPCSTR, LPSTR, DWORD );
    851851//******************************************************************************
    852 DWORD OSLibDosSearchPath(DWORD cmd, char *path, char *name, char *full_name,
    853                          DWORD length_fullname)
     852DWORD OSLibDosSearchPath(DWORD cmd, LPCSTR path, LPCSTR name,
     853                         LPSTR full_name, DWORD length_fullname)
    854854{
    855855  switch(cmd) {
     
    947947   APIRET  rc = ERROR_NOT_ENOUGH_MEMORY;
    948948
    949    CHAR* lpszFileLoc = ODINHelperStripUNC(lpszFile);
     949   LPCSTR lpszFileLoc = ODINHelperStripUNC(lpszFile);
    950950
    951951   //TODO: lpSecurityAttributes (inheritance)
Note: See TracChangeset for help on using the changeset viewer.