From: Todd C. Miller Date: Mon, 9 Aug 1999 22:17:05 +0000 (+0000) Subject: kill unused *_matched macros X-Git-Tag: SUDO_1_6_0~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b18495e627cd213ff940234d94eeccf64bb21192;p=sudo kill unused *_matched macros --- diff --git a/parse.h b/parse.h index 1b444ca45..133676502 100644 --- a/parse.h +++ b/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. */