/* Add source role as a comment. */
if (role->cn != NULL) {
- struct comment *comment = NULL;
+ struct sudoers_comment *comment = NULL;
if (reuse_userspec) {
/* Try to re-use comment too. */
STAILQ_FOREACH(comment, &us->comments, entries) {
bool expand_aliases)
{
struct privilege *priv;
- struct comment *comment;
+ struct sudoers_comment *comment;
struct member *m;
debug_decl(sudoers_format_userspec, SUDOERS_DEBUG_UTIL)
free_userspec(struct userspec *us)
{
struct privilege *priv;
- struct comment *comment;
+ struct sudoers_comment *comment;
free_members(&us->users);
while ((priv = TAILQ_FIRST(&us->privileges)) != NULL) {
free_userspec(struct userspec *us)
{
struct privilege *priv;
- struct comment *comment;
+ struct sudoers_comment *comment;
free_members(&us->users);
while ((priv = TAILQ_FIRST(&us->privileges)) != NULL) {
TAILQ_HEAD(member_list, member);
TAILQ_HEAD(privilege_list, privilege);
TAILQ_HEAD(cmndspec_list, cmndspec);
-STAILQ_HEAD(comment_list, comment);
+STAILQ_HEAD(comment_list, sudoers_comment);
/*
* Structure describing a user specification and list thereof.
struct member *runasgroups;
};
-struct comment {
- STAILQ_ENTRY(comment) entries;
+struct sudoers_comment {
+ STAILQ_ENTRY(sudoers_comment) entries;
char *str;
};