diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2021-07-02 07:20:45 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2021-07-02 07:20:45 +0000 |
commit | 6d368320543bd119e3a08525fa093402d89d8bfc (patch) | |
tree | e2e02aeb595e5e3c09122ff89fa07a6010f1ec52 /usr.bin | |
parent | 00d7e79bfc3bc682b28905d50591bdfa67618e83 (diff) |
Remove obsolete comments about SSHv1 auth methods. ok djm@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/misc.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/ssh/misc.c b/usr.bin/ssh/misc.c index ea45b00c742..aff0e1a433d 100644 --- a/usr.bin/ssh/misc.c +++ b/usr.bin/ssh/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.166 2021/06/08 06:54:40 djm Exp $ */ +/* $OpenBSD: misc.c,v 1.167 2021/07/02 07:20:44 dtucker Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2005-2020 Damien Miller. All rights reserved. @@ -2284,10 +2284,15 @@ parse_absolute_time(const char *s, uint64_t *tp) return 0; } +/* On OpenBSD time_t is int64_t which is long long. */ +#ifndef SSH_TIME_T_MAX +# define SSH_TIME_T_MAX LLONG_MAX +#endif + void format_absolute_time(uint64_t t, char *buf, size_t len) { - time_t tt = t > INT_MAX ? INT_MAX : t; /* XXX revisit in 2038 :P */ + time_t tt = t > SSH_TIME_T_MAX ? SSH_TIME_T_MAX : t; struct tm tm; localtime_r(&tt, &tm); |