diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-01-10 12:38:07 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-01-10 12:38:07 +0100 |
commit | 6c4bef150b3bc10b6f3cd88e6c6201d25febecae (patch) | |
tree | c9e145a3a58764e3471fb7b098c70c134e347a38 | |
parent | e60d611ea2b26b06c92513a2e060c2ba348e0142 (diff) | |
download | rsyslog-6c4bef150b3bc10b6f3cd88e6c6201d25febecae.tar.gz rsyslog-6c4bef150b3bc10b6f3cd88e6c6201d25febecae.tar.bz2 rsyslog-6c4bef150b3bc10b6f3cd88e6c6201d25febecae.zip |
cosmetic: remove over-suspicious compiler warnings
-rw-r--r-- | tests/tcpflood.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tcpflood.c b/tests/tcpflood.c index 8fd347f1..c3e5b57e 100644 --- a/tests/tcpflood.c +++ b/tests/tcpflood.c @@ -258,7 +258,7 @@ int openConnections(void) return setupUDP(); if(bShowProgress) - write(1, " open connections", sizeof(" open connections")-1); + if(write(1, " open connections", sizeof(" open connections")-1)){} # ifdef ENABLE_GNUTLS sessArray = calloc(numConnections, sizeof(gnutls_session_t)); # endif @@ -278,7 +278,7 @@ int openConnections(void) } if(bShowProgress) { lenMsg = sprintf(msgBuf, "\r%5.5d open connections\n", i); - write(1, msgBuf, lenMsg); + if(write(1, msgBuf, lenMsg)) {} } return 0; @@ -303,12 +303,12 @@ void closeConnections(void) return; if(bShowProgress) - write(1, " close connections", sizeof(" close connections")-1); + if(write(1, " close connections", sizeof(" close connections")-1)){} for(i = 0 ; i < numConnections ; ++i) { if(i % 10 == 0) { if(bShowProgress) { lenMsg = sprintf(msgBuf, "\r%5.5d", i); - write(1, msgBuf, lenMsg); + if(write(1, msgBuf, lenMsg)){} } } if(sockArray[i] != -1) { @@ -325,7 +325,7 @@ void closeConnections(void) } if(bShowProgress) { lenMsg = sprintf(msgBuf, "\r%5.5d close connections\n", i); - write(1, msgBuf, lenMsg); + if(write(1, msgBuf, lenMsg)){} } } |