Fix compilation on 32-bit systems.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 19 Sep 2013 09:34:54 +0000 (11:34 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 19 Sep 2013 09:34:54 +0000 (11:34 +0200)
server.cpp

index a5f6a32..0ed44fe 100644 (file)
@@ -432,7 +432,7 @@ sending_data_again:
 
                ssize_t ret;
                do {
-                       loff_t offset = client->stream_pos % stream->backlog_size;
+                       off_t offset = client->stream_pos % stream->backlog_size;
                        ret = sendfile(client->sock, stream->data_fd, &offset, bytes_to_send);
                } while (ret == -1 && errno == EINTR);