[Spice-devel] [PATCH 4/5] client controller_test: reorder parameters since pid isn't needed for linux client test
Alon Levy
alevy at redhat.com
Sun Feb 26 08:43:34 PST 2012
---
client/tests/controller_test/controller_test.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/client/tests/controller_test/controller_test.cpp b/client/tests/controller_test/controller_test.cpp
index aa7a6c0..82b3166 100644
--- a/client/tests/controller_test/controller_test.cpp
+++ b/client/tests/controller_test/controller_test.cpp
@@ -121,9 +121,9 @@ DWORD read_from_pipe(LPVOID data, DWORD size)
int main(int argc, char *argv[])
{
- int spicec_pid = (argc > 1 ? atoi(argv[1]) : 0);
- char* host = (argc > 2 ? argv[2] : (char*)HOST);
- int port = (argc > 3 ? atoi(argv[3]) : PORT);
+ int spicec_pid = (argc > 3 ? atoi(argv[3]) : 0);
+ char* host = (argc > 1 ? argv[1] : (char*)HOST);
+ int port = (argc > 2 ? atoi(argv[2]) : PORT);
TCHAR pipe_name[PIPE_NAME_MAX_LEN];
ControllerValue msg;
DWORD read;
--
1.7.9.1
More information about the Spice-devel
mailing list