diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2023-03-03 02:37:59 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2023-03-03 02:37:59 +0000 |
commit | 221565723b7ae00a078d16d19b3b11c0f39dae06 (patch) | |
tree | e7b02f35a99b0a43226aff45d59a9a0067737ebf /usr.bin/ssh/misc.h | |
parent | aeeadf82c00c53138177f01f7cc56a4039c1a516 (diff) |
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@
Diffstat (limited to 'usr.bin/ssh/misc.h')
-rw-r--r-- | usr.bin/ssh/misc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/ssh/misc.h b/usr.bin/ssh/misc.h index 7d1454e04f0..902cf56cbe2 100644 --- a/usr.bin/ssh/misc.h +++ b/usr.bin/ssh/misc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.101 2023/01/06 02:37:04 djm Exp $ */ +/* $OpenBSD: misc.h,v 1.102 2023/03/03 02:37:58 dtucker Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -238,4 +238,7 @@ void notify_complete(struct notifier_ctx *, const char *, ...) typedef void (*sshsig_t)(int); sshsig_t ssh_signal(int, sshsig_t); +/* On OpenBSD time_t is int64_t which is long long. */ +#define SSH_TIME_T_MAX LLONG_MAX + #endif /* _MISC_H */ |