Use cpp macro to avoid manually adding sentinel value to varargs functions

darcs-hash:20070416214041-ac50b-f682569c0d29ab3519bb59335debba525a640175.gz
This commit is contained in:
axel
2007-04-17 07:40:41 +10:00
parent 2efb88a30a
commit 91ca8610ee
4 changed files with 51 additions and 56 deletions

View File

@@ -553,11 +553,11 @@ void reader_write_title()
don't. Since we can't see the underlying terminal below screen
there is no way to fix this.
*/
if( !term || !contains_str( term, L"xterm", L"screen", L"nxterm", L"rxvt", (wchar_t *)0 ) )
if( !term || !CONTAINS( term, L"xterm", L"screen", L"nxterm", L"rxvt" ) )
{
char *n = ttyname( STDIN_FILENO );
if( contains_str( term, L"linux", (void *)0 ) )
if( CONTAINS( term, L"linux" ) )
{
return;
}