(file_lock, file_unlock, ef_lock, ef_unlock, commlock, communlock):

File locking doesn't make sense, must be a leftover from the distant
past.  Remove.  Callers changed.
This commit is contained in:
Markus Armbruster 2004-01-29 17:07:26 +00:00
parent daad9ed79c
commit beba530119
11 changed files with 2 additions and 191 deletions

View file

@ -55,17 +55,11 @@ distrea(int n, register struct trtstr *tp)
return 0;
(void)time(&now);
if (now > tp->trt_exp) {
if (!ef_lock(EF_TREATY)) {
pr("Can't lock treaty file; get help!\n");
return 0;
}
tp->trt_status = TS_FREE;
if (!puttre(n, tp)) {
pr("Couldn't save treaty; get help!\n");
(void)ef_unlock(EF_TREATY);
return 0;
}
(void)ef_unlock(EF_TREATY);
pr("Treaty #%d expired %s", n, ctime(&tp->trt_exp));
return 0;
}