Fix minor windows pedantic warnings.

This commit is contained in:
Jason Felds
2016-03-27 22:03:15 -04:00
parent 534909d30a
commit bec18a0d36
31 changed files with 173 additions and 67 deletions
+5 -1
View File
@@ -31,17 +31,21 @@ static void safe_print( int fd, ... )
va_list ap;
va_start( ap, fd );
while( true )
for(;;)
{
const char *p = va_arg( ap, const char * );
if( p == NULL )
{
break;
}
size_t len = strlen( p );
while( len )
{
ssize_t result = write( fd, p, strlen(p) );
if( result == -1 )
{
_exit( 1 );
}
len -= result;
p += result;
}