summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2017-11-21 17:21:19 +0000
committerFrediano Ziglio <fziglio@redhat.com>2017-11-23 11:39:01 +0000
commit77b3f317f5127c8854caf118f25006a1b538c005 (patch)
tree0674e82e58819b88c7b478ae295f38b908e29ada
parente326674ff9103215e75dae4da3d9cf80ec9a14ed (diff)
Revert read_command_from_stdin
The device should handle the device, not interactive commands
-rw-r--r--src/spice-streaming-agent.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index e6291ad..2636245 100644
--- a/src/spice-streaming-agent.cpp
+++ b/src/spice-streaming-agent.cpp
@@ -69,7 +69,6 @@ public:
public:
bool have_something_to_read(int *pfd, int timeout);
- int read_command_from_stdin(void);
int read_command_from_device(void);
int read_command(bool blocking);
int send_format(unsigned w, unsigned h, unsigned c);
@@ -117,7 +116,7 @@ bool SpiceStream::have_something_to_read(int *pfd, int timeout)
return *pfd != -1;
}
-int SpiceStream::read_command_from_stdin(void)
+static int read_command_from_stdin(void)
{
char buffer[64], *p, *save = NULL;