make clang happy take two

This commit is contained in:
abishai 2017-02-06 09:57:22 +03:00
parent c7aaa8a933
commit 74dd8ab027
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ bool Monitor::MonitorLink::disconnect()
}
}
if ( shmdt( mem_ptr ) < (void *)0 )
if ( shmdt( mem_ptr ) < 0 )
{
Debug( 3, "Can't shmdt: %s", strerror(errno) );
return( false );

View File

@ -331,7 +331,7 @@ int main( int argc, char *argv[] )
Debug( 1, "Got image, writing to %s", path );
FILE *fd = 0;
if ( (fd = fopen( path, "w" )) < (void *)0 )
if ( (fd = fopen( path, "w" )) == NULL )
{
Error( "Can't fopen '%s': %s", path, strerror(errno) );
exit( -1 );