Make timeq_init() automatic.
authorMichael Poole <mdpoole@troilus.org>
Wed, 4 Oct 2006 01:41:05 +0000 (01:41 +0000)
committerMichael Poole <mdpoole@troilus.org>
Wed, 4 Oct 2006 01:41:05 +0000 (01:41 +0000)
commit1ee33e9bc90e31e1fa1d20ddba431ced98dbe978
tree77c4c472ccb67d5339151bf52d41db14b2a3f2d6
parent0a20812873b8f5865e1b6cfc1affa472925df1ed
Make timeq_init() automatic.

src/main.c (main): Remove call to timeq_init().

src/timeq.h (timeq_init): Remove declaration.

src/timeq.c (timeq_cleanup): Assign NULL to timeq to handle late timeq_del() calls.
  (timeq_init): Make static.
  (timeq_next): If timeq is NULL, return a large positive number.
  (timeq_add): If timeq is NULL, initialize it.
  (timeq_del): If timeq is NULL, do nothing.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-54
ChangeLog
src/main.c
src/timeq.c
src/timeq.h