]> git.pond.sub.org Git - empserver/commit
subs: Don't squash telegrams together when time goes backwards
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 4 Jul 2015 12:31:28 +0000 (14:31 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 5 Dec 2015 11:41:16 +0000 (12:41 +0100)
commitd074d29736f7c49fdd4bcfb4258b1a21f74c0adf
tree810d8dead8ccc391506d84c32f24168d7e4f3c4f
parentfeb894cf1eb46407241f29eb6508c5fdc0f2ee84
subs: Don't squash telegrams together when time goes backwards

We've always squashed them when the time difference is smaller than
TEL_SECONDS, regardless of sign.  This involves passing the difference
to abs(), implicitly casting from time_t to int, which triggers a
Clang warning.

I could clean this up to get rid of the warning, but time should never
go backwards, and trying to make things prettier when it does isn't
worthwhile.  Simply drop the abs().

While there, drop the function comment.  It's been inaccurate since
Empire 3 dropped mail.c, and bogus since commit 17223e8 (v4.3.29)
added tel_cont.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/wu.c