mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 00:25:07 -05:00
cmdmon: use char for permissions table
This commit is contained in:
2
cmdmon.c
2
cmdmon.c
@@ -110,7 +110,7 @@ static ResponseCell *free_replies;
|
|||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
/* Array of permission levels for command types */
|
/* Array of permission levels for command types */
|
||||||
|
|
||||||
static int permissions[] = {
|
static const char permissions[] = {
|
||||||
PERMIT_OPEN, /* NULL */
|
PERMIT_OPEN, /* NULL */
|
||||||
PERMIT_AUTH, /* ONLINE */
|
PERMIT_AUTH, /* ONLINE */
|
||||||
PERMIT_AUTH, /* OFFLINE */
|
PERMIT_AUTH, /* OFFLINE */
|
||||||
|
|||||||
Reference in New Issue
Block a user