summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2017-11-15 09:44:03 +0000
committerFrediano Ziglio <fziglio@redhat.com>2017-11-16 12:22:22 +0000
commit64b0adc7cde5d0c31778ae901e37696602f8cee1 (patch)
tree7b1b6b8fc660da7ef8e036d89b547a68a8562caf
parentfc0f12b74424f9ca593c368f57a26dc1a5996a43 (diff)
Use true/false for bool value
Follow up due to read_command declaration change. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
-rw-r--r--src/spice-streaming-agent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index d5984bc..23b9768 100644
--- a/src/spice-streaming-agent.cpp
+++ b/src/spice-streaming-agent.cpp
@@ -355,7 +355,7 @@ do_capture(const char *streamport, FILE *f_log)
unsigned int frame_count = 0;
while (! quit) {
while (!quit && !streaming_requested) {
- if (read_command(1) < 0) {
+ if (read_command(true) < 0) {
syslog(LOG_ERR, "FAILED to read command\n");
goto done;
}
@@ -406,7 +406,7 @@ do_capture(const char *streamport, FILE *f_log)
break;
}
//usleep(1);
- if (read_command(0) < 0) {
+ if (read_command(false) < 0) {
syslog(LOG_ERR, "FAILED to read command\n");
goto done;
}