Kaydet (Commit) 6c1c9c4a authored tarafından Noel Grandin's avatar Noel Grandin

fix build

after my commit e3990370
"loplugin:unusedfields extensions"

Change-Id: Ia9d10e7df88e9a82cf5c8bd883346ead3debd2bd
üst ccf9d889
......@@ -207,9 +207,9 @@ static void CheckPluginRegistryFiles( const OString& rPath, list< PluginDescript
struct dirent* pDirEnt = nullptr;
struct stat aStat;
struct dirent u;
while( pDIR && ! readdir_r( pDIR, &u.asDirent, &pDirEnt ) && pDirEnt )
while( pDIR && ! readdir_r( pDIR, &u, &pDirEnt ) && pDirEnt )
{
char* pBaseName = u.asDirent.d_name;
char* pBaseName = u.d_name;
if( rtl_str_compare( ".", pBaseName ) && rtl_str_compare( "..", pBaseName ) )
{
OStringBuffer aBuf( 1024 );
......@@ -269,9 +269,9 @@ Sequence<PluginDescription> XPluginManager_Impl::impl_getPluginDescriptions() th
{
DIR* pDIR = opendir(aPath.getStr());
struct dirent* pDirEnt = nullptr;
while( pDIR && ! readdir_r( pDIR, &u.asDirent, &pDirEnt ) && pDirEnt )
while( pDIR && ! readdir_r( pDIR, &u, &pDirEnt ) && pDirEnt )
{
char* pBaseName = u.asDirent.d_name;
char* pBaseName = u.d_name;
if( pBaseName[0] != '.' ||
pBaseName[1] != '.' ||
pBaseName[2] != 0 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment