aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-06-02 18:49:26 +0000
committerN.N. <matju@users.sourceforge.net>2009-06-02 18:49:26 +0000
commit65b6daec9d32b65317b11d7ba003ea52d166b335 (patch)
tree38cc06af7d2a7da8e244b6eae965ddd747b94ac4
parent8200ef52c31953edf5076f28059dbd889cec2a25 (diff)
reformat
svn path=/trunk/; revision=11621
-rw-r--r--desiredata/src/s_watchdog.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/desiredata/src/s_watchdog.c b/desiredata/src/s_watchdog.c
index 14089eeb..49bffbb6 100644
--- a/desiredata/src/s_watchdog.c
+++ b/desiredata/src/s_watchdog.c
@@ -17,13 +17,8 @@ int main(int argc, char **argv) {
while (1) {
struct timeval timout;
fd_set readset;
- if (happy) {
- timout.tv_sec = 5;
- timout.tv_usec = 0;
- } else {
- timout.tv_sec = 2;
- timout.tv_usec = 0;
- }
+ if (happy) {timout.tv_sec = 5; timout.tv_usec = 0;}
+ else {timout.tv_sec = 2; timout.tv_usec = 0;}
FD_ZERO(&readset);
FD_SET(0, &readset);
select(1, &readset, 0, 0, &timout);