Indenting - no code changes

This commit is contained in:
schmirl 2007-01-15 11:45:48 +00:00
parent 56571d5879
commit 970bf59cc2

View File

@ -1,5 +1,5 @@
/*
* $Id: socket.c,v 1.6 2007/01/15 11:41:46 schmirl Exp $
* $Id: socket.c,v 1.7 2007/01/15 11:45:48 schmirl Exp $
*/
#include <tools/select.h>
@ -114,12 +114,12 @@ bool cClientSocket::CheckConnection(void) {
}
if (!Connect(StreamdevClientSetup.RemoteIp, StreamdevClientSetup.RemotePort)){
static time_t lastTime = 0;
static time_t lastTime = 0;
if (time(NULL) - lastTime > MINLOGREPEAT) {
esyslog("ERROR: Streamdev: Couldn't connect to %s:%d: %s",
esyslog("ERROR: Streamdev: Couldn't connect to %s:%d: %s",
(const char*)StreamdevClientSetup.RemoteIp,
StreamdevClientSetup.RemotePort, strerror(errno));
lastTime = time(NULL);
lastTime = time(NULL);
}
return false;
}