[Spice-devel] [PATCH spice-streaming-agent v2 1/4] style: Remove useless whitespace
Christophe de Dinechin
christophe at dinechin.org
Fri Nov 10 12:53:09 UTC 2017
From: Christophe de Dinechin <dinechin at redhat.com>
Signed-off-by: Christophe de Dinechin <dinechin at redhat.com>
---
src/spice-streaming-agent.cpp | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index ed7ddb9..7f93687 100644
--- a/src/spice-streaming-agent.cpp
+++ b/src/spice-streaming-agent.cpp
@@ -148,7 +148,7 @@ static int read_command(int blocking)
{
int fd, n=1;
int timeout = blocking?-1:0;
- while ( !quit ) {
+ while (!quit) {
if (!have_something_to_read(&fd, timeout)) {
if (!blocking) {
return 0;
@@ -185,7 +185,6 @@ write_all(int fd, const void *buf, const size_t len)
return written;
}
-
static int spice_stream_send_format(unsigned w, unsigned h, unsigned c)
{
@@ -441,7 +440,7 @@ int main(int argc, char* argv[])
if (isatty(fileno(stderr)) && isatty(fileno(stdin))) {
stdin_ok = true;
}
-
+
openlog("spice-streaming-agent", stdin_ok? (LOG_PERROR|LOG_PID) : LOG_PID, LOG_USER);
setlogmask(logmask);
@@ -526,4 +525,3 @@ int main(int argc, char* argv[])
closelog();
return ret;
}
-
--
2.13.5 (Apple Git-94)
More information about the Spice-devel
mailing list