]> granicus.if.org Git - sudo/commitdiff
kill unused *_matched macros
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 9 Aug 1999 22:17:05 +0000 (22:17 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 9 Aug 1999 22:17:05 +0000 (22:17 +0000)
parse.h

diff --git a/parse.h b/parse.h
index 1b444ca45840ce043cbcf58b78067969889e3e2f..1336765023f47a93935d25ead9fdf5c478b14866 100644 (file)
--- 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.
  */