Convert sudo to use BSD TAILQ macros instead of home ground tail
queue functions. This includes a private queue.h header derived from FreeBSD. It is simpler to just use our own header rather than try to deal with macros that may or may not be present in various queue.h incarnations.
This commit is contained in:
@@ -21,8 +21,7 @@ struct lbuf;
|
||||
struct passwd;
|
||||
|
||||
struct sudo_nss {
|
||||
struct sudo_nss *prev;
|
||||
struct sudo_nss *next;
|
||||
TAILQ_ENTRY(sudo_nss) entries;
|
||||
int (*open)(struct sudo_nss *nss);
|
||||
int (*close)(struct sudo_nss *nss);
|
||||
int (*parse)(struct sudo_nss *nss);
|
||||
@@ -37,7 +36,7 @@ struct sudo_nss {
|
||||
short ret_if_notfound;
|
||||
};
|
||||
|
||||
TQ_DECLARE(sudo_nss)
|
||||
TAILQ_HEAD(sudo_nss_list, sudo_nss);
|
||||
|
||||
struct sudo_nss_list *sudo_read_nss(void);
|
||||
|
||||
|
Reference in New Issue
Block a user