chiark
/
gitweb
/
~ijackson
/
trains.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ceea00
)
rework seg_clear_stale and fix up
author
ian
<ian>
Sun, 13 Apr 2008 15:35:12 +0000
(15:35 +0000)
committer
ian
<ian>
Sun, 13 Apr 2008 15:35:12 +0000
(15:35 +0000)
hostside/safety.c
patch
|
blob
|
history
diff --git
a/hostside/safety.c
b/hostside/safety.c
index c01e94022c9464e514b8d2ecf5fb3102db29c0b4..624eb7ef63ac37b404d54546ec7ddc24c5d1946b 100644
(file)
--- a/
hostside/safety.c
+++ b/
hostside/safety.c
@@
-13,10
+13,8
@@
Train *trains;
Segment *segments;
static void seg_clear_stale(Segment *seg) {
- if (!seg->tr_updated) {
- seg->owner= 0;
- seg->until_here= seg->until_detect= 0;
- }
+ seg->owner= 0;
+ seg->until_here= seg->until_detect= 0;
}
typedef struct {
@@
-61,7
+59,6
@@
static void lay_train_pass(LayTrainState *l,
seg->owner->pname);
return;
}
- seg_clear_stale(seg);
}
}