]> git.sesse.net Git - cubemap/blobdiff - stream.cpp
Small error message fix.
[cubemap] / stream.cpp
index 99226553451b2b5e8376954883d96e7cab5996f0..0c0fabac29c90f99330cfc8c5d634f3c78321f95 100644 (file)
@@ -3,7 +3,7 @@
 #include <netinet/in.h>
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
+#include <sys/types.h>
 #include <string>
 #include <vector>
 
@@ -185,7 +185,7 @@ void Stream::add_data_raw(const vector<iovec> &orig_data)
                } while (ret == -1 && errno == EINTR);
 
                if (ret == -1) {
-                       log_perror("pwrite");
+                       log_perror("pwritev");
                        // Dazed and confused, but trying to continue...
                        return;
                }
@@ -222,7 +222,7 @@ void Stream::add_data_deferred(const char *data, size_t bytes)
 
                queued_data.push_back(iov);
        } else {
-               assert(encoding == Stream::STREAM_ENCODING_RAW);
+               assert(false);
        }
 }