Module: check_mk
Branch: master
Commit: 323e0e1d1d4e158f09a42dccb7ae167af3a18925
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=323e0e1d1d4e15…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Apr 19 17:10:27 2013 +0200
check_mk_agent.cc: fix indentation bugs
---
agents/windows/check_mk_agent.cc | 66 +++++++++++++++++++-------------------
1 file changed, 33 insertions(+), 33 deletions(-)
diff --git a/agents/windows/check_mk_agent.cc b/agents/windows/check_mk_agent.cc
index 019fd26..93f1ff2 100755
--- a/agents/windows/check_mk_agent.cc
+++ b/agents/windows/check_mk_agent.cc
@@ -3096,42 +3096,42 @@ void output(SOCKET &out, const char *format, ...)
write_to_socket = true;
if (do_tcp) {
- while (write_to_socket && !should_terminate) {
- int result = send(out, outbuffer, len, 0);
- if (result == SOCKET_ERROR) {
- debug("send() failed");
- int error = WSAGetLastError();
- if (error == WSAEINTR) {
- debug("INTR. Nochmal...");
- continue;
- }
- else if (error == WSAEINPROGRESS) {
- debug("INPROGRESS. Nochmal...");
- continue;
- }
- else if (error == WSAEWOULDBLOCK) {
- debug("WOULDBLOCK. Komisch. Breche ab...");
- break;
- }
- else {
- debug("Anderer Fehler. Gebe auf\n");
- break;
- }
- }
- else if (result == 0)
- debug("send() returned 0");
- else if (result != len) {
- debug("send() sent too few bytes");
- len -= result;
- }
- else
- len = 0;
+ while (write_to_socket && !should_terminate) {
+ int result = send(out, outbuffer, len, 0);
+ if (result == SOCKET_ERROR) {
+ debug("send() failed");
+ int error = WSAGetLastError();
+ if (error == WSAEINTR) {
+ debug("INTR. Nochmal...");
+ continue;
+ }
+ else if (error == WSAEINPROGRESS) {
+ debug("INPROGRESS. Nochmal...");
+ continue;
+ }
+ else if (error == WSAEWOULDBLOCK) {
+ debug("WOULDBLOCK. Komisch. Breche ab...");
+ break;
+ }
+ else {
+ debug("Anderer Fehler. Gebe auf\n");
+ break;
+ }
+ }
+ else if (result == 0)
+ debug("send() returned 0");
+ else if (result != len) {
+ debug("send() sent too few bytes");
+ len -= result;
+ }
+ else
+ len = 0;
- break;
- }
+ break;
+ }
}
else {
- fwrite(outbuffer, len, 1, stdout);
+ fwrite(outbuffer, len, 1, stdout);
len = 0;
}
}