summaryrefslogtreecommitdiff
path: root/src/base/protect.h
diff options
context:
space:
mode:
authorxHire <xhire@tuxportal.cz>2008-10-25 14:11:06 +0200
committerxHire <xhire@tuxportal.cz>2008-10-25 14:11:06 +0200
commitc8a9209d77a896bf49227e5aeccd54e91ccf29cc (patch)
tree6b7367406ebbc6ce3ea5e0c8668c75f6fb3f6ae9 /src/base/protect.h
parentcb9deba915dd7b114eeb76601eb1c8b07c1ba90f (diff)
Changed style of the code to the K&R standard
Diffstat (limited to 'src/base/protect.h')
-rw-r--r--src/base/protect.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/base/protect.h b/src/base/protect.h
index 54c5554..9a1cf1d 100644
--- a/src/base/protect.h
+++ b/src/base/protect.h
@@ -1,20 +1,19 @@
#ifndef PROTECT_H
-#define PROTECT_H
-#define PROTECT_PING_INTERVAL_TIMEOUT 5000
-#define PROTECT_SPEED_INTERVAL_TIMEOUT 40
-#define PROTECT_SPEED_AVARAGE 10
+# define PROTECT_H
+# define PROTECT_PING_INTERVAL_TIMEOUT 5000
+# define PROTECT_SPEED_INTERVAL_TIMEOUT 40
+# define PROTECT_SPEED_AVARAGE 10
-#include "main.h"
-#include "myTimer.h"
+# include "main.h"
+# include "myTimer.h"
-typedef struct protect_struct
-{
- my_time_t lastPing;
- my_time_t lastMove;
- my_time_t avarage;
- int count;
- bool_t isDown;
+typedef struct protect_struct {
+ my_time_t lastPing;
+ my_time_t lastMove;
+ my_time_t avarage;
+ int count;
+ bool_t isDown;
} protect_t;
extern protect_t *newProtect();