Ignore:
Timestamp:
Oct 21, 2011, 4:52:51 PM (14 years ago)
Author:
dmik
Message:

Common compiler warnings and errors.

File:
1 edited

Legend:

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

    r21355 r21730  
    4141//list of important OS/2 environment variables that must not be removed
    4242//when creating a new process
    43 static char *lpReservedEnvStrings[] = {
     43static const char *lpReservedEnvStrings[] = {
    4444"HOSTNAME",
    4545"TZ",
     
    7676  //TEMP is a standard environment variable in Windows, but is not always
    7777  //present in OS/2, so make sure it is.
    78   if(GetEnvironmentVariableA("TEMP", szVar, sizeof(szVar)) == 0) 
     78  if(GetEnvironmentVariableA("TEMP", szVar, sizeof(szVar)) == 0)
    7979  {
    8080      if(GetEnvironmentVariableA("TMP", szVar, sizeof(szVar)) == 0) {
     
    226226 *             If the function fails, the return value is zero
    227227 * Remark    :
    228  * Status    : 
     228 * Status    :
    229229 *
    230230 *****************************************************************************/
     
    254254            if ((p = strchr( src + 1, '%' )) != NULL)
    255255            {
    256                 len = p - src - 1;  /* Length of the variable name */   
     256                len = p - src - 1;  /* Length of the variable name */
    257257                if ((var = ENV_FindVariable( GetEnvironmentStringsA(),
    258258                                             src + 1, len )) != NULL)
     
    309309 *             If the function fails, the return value is zero
    310310 * Remark    :
    311  * Status    : 
     311 * Status    :
    312312 *
    313313 *****************************************************************************/
     
    340340    char *tmpenvnew, *newenv;
    341341    int newsize = 0, len;
    342        
     342
    343343    dprintf(("New environment:"));
    344344    while(*tmpenvold) {
     
    374374        tmpenvold += len+1;
    375375    }
     376    int i;
    376377    for(i=0;i<sizeof(lpReservedEnvStrings)/sizeof(char *);i++) {
    377378        if(!ENV_FindVariable(lpEnvironment, lpReservedEnvStrings[i], strlen(lpReservedEnvStrings[i]))) {
Note: See TracChangeset for help on using the changeset viewer.