Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2215 → Rev 2216

/drivers/devman/acpica/os_specific/service_layers/osunixdir.c
9,7 → 9,7
*
* 1. Copyright Notice
*
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp.
* All rights reserved.
*
* 2. License
125,6 → 125,9
 
#include "acpisrc.h"
 
/*
* Allocated structure returned from OsOpenDirectory
*/
typedef struct ExternalFindInfo
{
char *DirPathname;
217,7 → 220,9
if (!fnmatch (ExternalInfo->WildcardSpec, dir_entry->d_name, 0))
{
if (dir_entry->d_name[0] == '.')
{
continue;
}
 
str_len = strlen (dir_entry->d_name) +
strlen (ExternalInfo->DirPathname) + 2;
226,7 → 231,7
if (!temp_str)
{
printf ("Could not allocate buffer for temporary string\n");
return NULL;
return (NULL);
}
 
strcpy (temp_str, ExternalInfo->DirPathname);
238,7 → 243,7
if (err == -1)
{
printf ("stat() error - should not happen\n");
return NULL;
return (NULL);
}
 
if ((S_ISDIR (temp_stat.st_mode)
255,7 → 260,7
}
}
 
return NULL;
return (NULL);
}
 
 
284,9 → 289,21
free (DirHandle);
}
 
 
/* Other functions acpisrc uses but that aren't standard on Unix */
 
/* lowercase a string */
/*******************************************************************************
*
* FUNCTION: strlwr
*
* PARAMETERS: str - String to be lowercased.
*
* RETURN: str.
*
* DESCRIPTION: Lowercase a string in-place.
*
******************************************************************************/
 
char*
strlwr (
char *str)