From: Todd C. Miller Date: Mon, 7 Nov 2016 01:41:31 +0000 (-0700) Subject: In display_bound_defaults() rename dtype arg -> deftype. X-Git-Tag: SUDO_1_8_19^2~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ca0838ba9d666a6d286adddc15f6d447a7fce44;p=sudo In display_bound_defaults() rename dtype arg -> deftype. --- diff --git a/plugins/sudoers/parse.c b/plugins/sudoers/parse.c index 64e573a5a..5e8236741 100644 --- a/plugins/sudoers/parse.c +++ b/plugins/sudoers/parse.c @@ -43,7 +43,7 @@ /* * Local prototypes. */ -static int display_bound_defaults(int dtype, struct sudo_lbuf *lbuf); +static int display_bound_defaults(int deftype, struct sudo_lbuf *lbuf); static int sudo_file_close(struct sudo_nss *); static int sudo_file_display_bound_defaults(struct sudo_nss *, struct passwd *, struct sudo_lbuf *); static int sudo_file_display_cmnd(struct sudo_nss *, struct passwd *); @@ -672,7 +672,7 @@ sudo_file_display_bound_defaults(struct sudo_nss *nss, struct passwd *pw, * Display Defaults entries of the given type. */ static int -display_bound_defaults(int dtype, struct sudo_lbuf *lbuf) +display_bound_defaults(int deftype, struct sudo_lbuf *lbuf) { struct defaults *d; struct member_list *binding = NULL; @@ -681,7 +681,7 @@ display_bound_defaults(int dtype, struct sudo_lbuf *lbuf) int atype, nfound = 0; debug_decl(display_bound_defaults, SUDOERS_DEBUG_NSS) - switch (dtype) { + switch (deftype) { case DEFAULTS_HOST: atype = HOSTALIAS; dsep = "@"; @@ -702,7 +702,7 @@ display_bound_defaults(int dtype, struct sudo_lbuf *lbuf) debug_return_int(-1); } TAILQ_FOREACH(d, &defaults, entries) { - if (d->type != dtype) + if (d->type != deftype) continue; nfound++;