From cffc78ad6a978c8ef0afae4fbdd4b189612a7167 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 28 Jan 2013 23:35:01 +0100 Subject: InputStream: store references instead of pointers --- src/InputInternal.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/InputInternal.cxx') diff --git a/src/InputInternal.cxx b/src/InputInternal.cxx index a154b68da..e110ebf0a 100644 --- a/src/InputInternal.cxx +++ b/src/InputInternal.cxx @@ -24,14 +24,13 @@ void input_stream_signal_client(struct input_stream *is) { - if (is->cond != NULL) - is->cond->broadcast(); + is->cond.broadcast(); } void input_stream_set_ready(struct input_stream *is) { - const ScopeLock protect(*is->mutex); + const ScopeLock protect(is->mutex); if (!is->ready) { is->ready = true; -- cgit v1.2.3