From 7d7dfbfd44eb65367ab44cab4e2812128c6b95a1 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 26 Nov 2023 08:59:05 -0700 Subject: [PATCH] Sync time stamp defines with sudoers timestamp.h The types and flags are now explicitly unsigned. --- docs/sudoers_timestamp.man.in | 12 ++++++------ docs/sudoers_timestamp.mdoc.in | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/sudoers_timestamp.man.in b/docs/sudoers_timestamp.man.in index 630ca9d6e..36ab46d92 100644 --- a/docs/sudoers_timestamp.man.in +++ b/docs/sudoers_timestamp.man.in @@ -60,14 +60,14 @@ Time stamp records have the following structure: .sp .RS 0n /* Time stamp entry types */ -#define TS_GLOBAL 0x01 /* not restricted by tty or ppid */ -#define TS_TTY 0x02 /* restricted by tty */ -#define TS_PPID 0x03 /* restricted by ppid */ -#define TS_LOCKEXCL 0x04 /* special lock record */ +#define TS_GLOBAL 0x01U /* not restricted by tty or ppid */ +#define TS_TTY 0x02U /* restricted by tty */ +#define TS_PPID 0x03U /* restricted by ppid */ +#define TS_LOCKEXCL 0x04U /* special lock record */ /* Time stamp flags */ -#define TS_DISABLED 0x01 /* entry disabled */ -#define TS_ANYUID 0x02 /* ignore uid, only valid in key */ +#define TS_DISABLED 0x01U /* entry disabled */ +#define TS_ANYUID 0x02U /* ignore uid, only valid in key */ struct timestamp_entry { unsigned short version; /* version number */ diff --git a/docs/sudoers_timestamp.mdoc.in b/docs/sudoers_timestamp.mdoc.in index 4ddefb09a..8856cee3d 100644 --- a/docs/sudoers_timestamp.mdoc.in +++ b/docs/sudoers_timestamp.mdoc.in @@ -58,14 +58,14 @@ number and a 16-bit record size. Time stamp records have the following structure: .Bd -literal /* Time stamp entry types */ -#define TS_GLOBAL 0x01 /* not restricted by tty or ppid */ -#define TS_TTY 0x02 /* restricted by tty */ -#define TS_PPID 0x03 /* restricted by ppid */ -#define TS_LOCKEXCL 0x04 /* special lock record */ +#define TS_GLOBAL 0x01U /* not restricted by tty or ppid */ +#define TS_TTY 0x02U /* restricted by tty */ +#define TS_PPID 0x03U /* restricted by ppid */ +#define TS_LOCKEXCL 0x04U /* special lock record */ /* Time stamp flags */ -#define TS_DISABLED 0x01 /* entry disabled */ -#define TS_ANYUID 0x02 /* ignore uid, only valid in key */ +#define TS_DISABLED 0x01U /* entry disabled */ +#define TS_ANYUID 0x02U /* ignore uid, only valid in key */ struct timestamp_entry { unsigned short version; /* version number */