Merging upstream version 2.3.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-04-24 13:53:01 +02:00
parent f3ce14142a
commit ce06587ac5
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
62 changed files with 3847 additions and 68733 deletions

View file

@ -143,8 +143,8 @@ int main(int argc, char* argv[])
struct tm tm;
gmtime_r(&start_time, &tm);
strftime(when, sizeof when, "%F %T", &tm);
fprintf(stderr, "Sleeping for %d seconds until %s UTC\n",
(int)(start_time - now.tv_sec), when);
fprintf(stderr, "Sleeping for %" PRI_tv_sec " seconds until %s UTC\n",
start_time - now.tv_sec, when);
sleep(start_time - now.tv_sec);
fprintf(stderr, "Awake.\n");
}