summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-03-14 13:25:52 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-03-14 13:25:52 +0100
commitb6f7a3fe15f2f253a1653454f514b467aa20f821 (patch)
treec0fdddaa251dbb0a4da66a86b547032bb84d3bc8 /doc
parent3dbdf1ccfa5f109f8d7489f913ed57aa8e9b5f11 (diff)
improve time(NULL) error checking
Use errx, time(NULL) does not set errno. For sfeed_curses reset errno so it doesn't print a random error if it failed. POSIX recommends checking against (time_t)-1 on failure. Note that some implementation, like the OpenBSD man page says time() cannot fail.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions