mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
kill unused *_matched macros
This commit is contained in:
13
parse.h
13
parse.h
@@ -62,13 +62,9 @@ struct sudo_command {
|
||||
};
|
||||
|
||||
#define user_matches (match[top-1].user)
|
||||
#define user_matched (match[top].user)
|
||||
#define cmnd_matches (match[top-1].cmnd)
|
||||
#define cmnd_matched (match[top].cmnd)
|
||||
#define host_matches (match[top-1].host)
|
||||
#define host_matched (match[top].host)
|
||||
#define runas_matches (match[top-1].runas)
|
||||
#define runas_matched (match[top].runas)
|
||||
#define no_passwd (match[top-1].nopass)
|
||||
|
||||
/*
|
||||
@@ -84,6 +80,15 @@ struct command_match {
|
||||
int nopasswd;
|
||||
};
|
||||
|
||||
/*
|
||||
* Structure describing an alias match in parser.
|
||||
*/
|
||||
typedef struct {
|
||||
int type;
|
||||
char *name;
|
||||
int val;
|
||||
} aliasinfo;
|
||||
|
||||
/*
|
||||
* Structure containing Cmnd_Alias's if "sudo -l" is used.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user