diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-07 13:39:49 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-07 14:02:35 +0200 |
commit | 75a23240d6ac090305f18ca93094ce2739eb8646 (patch) | |
tree | 787ba1526d17f65442b091c3dd38678398dd6981 | |
parent | e189c61376a867c30adf385d435f2ff391d26187 (diff) |
-Werror=unused-result
Change-Id: Idf10a5cb70176c24d609f70ec01c1630ab1dad37
-rw-r--r-- | vcl/workben/svpclient.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/workben/svpclient.cxx b/vcl/workben/svpclient.cxx index c47169c7da51..915dd9cdc986 100644 --- a/vcl/workben/svpclient.cxx +++ b/vcl/workben/svpclient.cxx @@ -190,10 +190,11 @@ OString MyWin::processCommand( const OString& rCommand ) } else { - write( nSocket, rCommand.getStr(), rCommand.getLength() ); - write( nSocket, "\n", 1 ); - char buf[256]; ssize_t nBytes = 0; + nBytes = write( nSocket, rCommand.getStr(), rCommand.getLength() ); + nBytes = write( nSocket, "\n", 1 ); + nBytes = 0; + char buf[256]; do { nBytes = read( nSocket, buf, sizeof(buf) ); |