Fix setLineBuf for bsd (fixes #177)

Use 0 instead of NULL in a cast.
This commit is contained in:
Jay Berkenbilt 2018-02-04 13:52:44 -05:00
parent d5bfd49cb2
commit 3b2a3cdd77
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ void
QUtil::setLineBuf(FILE* f)
{
#ifndef _WIN32
setvbuf(f, reinterpret_cast<char *>(NULL), _IOLBF, 0);
setvbuf(f, reinterpret_cast<char *>(0), _IOLBF, 0);
#endif
}