summaryrefslogtreecommitdiffstats
path: root/misc.c
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2023-03-03 03:37:58 +0100
committerDarren Tucker <dtucker@dtucker.net>2023-03-03 04:16:42 +0100
commite37261dff33af23f37202cfce0848d36f5c1055c (patch)
tree0637599b84de76b3d8736b6f8f73b84f3d55fcd0 /misc.c
parentupstream: Check return value from fctnl and warn on failure. (diff)
downloadopenssh-e37261dff33af23f37202cfce0848d36f5c1055c.tar.xz
openssh-e37261dff33af23f37202cfce0848d36f5c1055c.zip
upstream: Use time_t for x11_refuse_time timeout. We need
SSH_TIME_T_MAX for this, so move from misc.c to misc.h so it's available. Fixes a Coverity warning for 64bit time_t safety, ok djm@ OpenBSD-Commit-ID: c69c4c3152cdaab953706db4ccf4d5fd682f7d8d
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/misc.c b/misc.c
index c098dc610..6135b1556 100644
--- a/misc.c
+++ b/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.180 2023/01/06 02:37:04 djm Exp $ */
+/* $OpenBSD: misc.c,v 1.181 2023/03/03 02:37:58 dtucker Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2005-2020 Damien Miller. All rights reserved.
@@ -2452,9 +2452,6 @@ parse_absolute_time(const char *s, uint64_t *tp)
return 0;
}
-/* On OpenBSD time_t is int64_t which is long long. */
-/* #define SSH_TIME_T_MAX LLONG_MAX */
-
void
format_absolute_time(uint64_t t, char *buf, size_t len)
{