fix build

This commit is contained in:
Isaac Connor 2017-09-01 18:03:34 -04:00
parent ed6ff23c2f
commit d11313e6bc
1 changed files with 2 additions and 2 deletions

View File

@ -834,7 +834,7 @@ bool EventStream::send_file( const char * filepath ) {
return false; return false;
} }
bool sent = false; bool sent = false;
bool size_size = false; bool size_sent = false;
#if HAVE_SENDFILE #if HAVE_SENDFILE
static struct stat filestat; static struct stat filestat;
@ -845,7 +845,7 @@ bool EventStream::send_file( const char * filepath ) {
fprintf( stdout, "Content-Length: %d\r\n\r\n", (int)filestat.st_size ); fprintf( stdout, "Content-Length: %d\r\n\r\n", (int)filestat.st_size );
size_sent = true; size_sent = true;
if ( ! zm_sendfile(fileno(stdout), fileno(fdj), 0, (int)filestat.st_size) != (int)filestat.st_size ) { if ( zm_sendfile(fileno(stdout), fileno(fdj), 0, (int)filestat.st_size) != (int)filestat.st_size ) {
sent = true; sent = true;
} }
#endif #endif