summaryrefslogtreecommitdiff
path: root/src/ZHandle.cc
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2012-02-28 02:52:13 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2012-02-28 02:52:13 +0100
commit89b50a242479f74fcbe48c64f2458a26adeab548 (patch)
treea0cc837b478f1e40cf1eb3c5625bda9d1f7a8155 /src/ZHandle.cc
parentf191c6f606fe15f2a99b850aabe65c11f884e289 (diff)
There goes C++11...
Diffstat (limited to 'src/ZHandle.cc')
-rw-r--r--src/ZHandle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ZHandle.cc b/src/ZHandle.cc
index 0a43b05..7ab0133 100644
--- a/src/ZHandle.cc
+++ b/src/ZHandle.cc
@@ -79,7 +79,7 @@ ssize_t Balau::ZStream::read(void * buf, size_t count) throw (GeneralException)
if (r <= 0)
return readTotal;
}
- Task::yield(NULL);
+ Task::yield(nullptr);
int r = inflate(&m_zin, Z_SYNC_FLUSH);
size_t didRead = count - m_zin.avail_out;
readTotal += didRead;
@@ -108,7 +108,7 @@ ssize_t Balau::ZStream::write(const void * buf, size_t count) throw (GeneralExce
m_zout.avail_out = BLOCK_SIZE;
int r = deflate(&m_zout, Z_NO_FLUSH);
EAssert(r == Z_OK, "deflate() didn't return Z_OK but %i", r);
- Task::yield(NULL);
+ Task::yield(nullptr);
size_t compressed = BLOCK_SIZE - m_zout.avail_out;
if (compressed) {
size_t w = m_h->forceWrite(obuf, compressed);