debug_decl and debug_decl_vars now require a semicolon at the end.
This commit is contained in:
@@ -107,7 +107,7 @@ sudo_auth_init(struct passwd *pw)
|
||||
{
|
||||
sudo_auth *auth;
|
||||
int status = AUTH_SUCCESS;
|
||||
debug_decl(sudo_auth_init, SUDOERS_DEBUG_AUTH)
|
||||
debug_decl(sudo_auth_init, SUDOERS_DEBUG_AUTH);
|
||||
|
||||
if (auth_switch[0].name == NULL)
|
||||
debug_return_int(0);
|
||||
@@ -178,7 +178,7 @@ int
|
||||
sudo_auth_approval(struct passwd *pw, int validated, bool exempt)
|
||||
{
|
||||
sudo_auth *auth;
|
||||
debug_decl(sudo_auth_approval, SUDOERS_DEBUG_AUTH)
|
||||
debug_decl(sudo_auth_approval, SUDOERS_DEBUG_AUTH);
|
||||
|
||||
/* Call approval routines. */
|
||||
for (auth = auth_switch; auth->name; auth++) {
|
||||
@@ -202,7 +202,7 @@ int
|
||||
sudo_auth_cleanup(struct passwd *pw)
|
||||
{
|
||||
sudo_auth *auth;
|
||||
debug_decl(sudo_auth_cleanup, SUDOERS_DEBUG_AUTH)
|
||||
debug_decl(sudo_auth_cleanup, SUDOERS_DEBUG_AUTH);
|
||||
|
||||
/* Call cleanup routines. */
|
||||
for (auth = auth_switch; auth->name; auth++) {
|
||||
@@ -221,7 +221,7 @@ static void
|
||||
pass_warn(void)
|
||||
{
|
||||
const char *warning = def_badpass_message;
|
||||
debug_decl(pass_warn, SUDOERS_DEBUG_AUTH)
|
||||
debug_decl(pass_warn, SUDOERS_DEBUG_AUTH);
|
||||
|
||||
#ifdef INSULT
|
||||
if (def_insults)
|
||||
@@ -254,7 +254,7 @@ verify_user(struct passwd *pw, char *prompt, int validated,
|
||||
sudo_auth *auth;
|
||||
sigset_t mask, omask;
|
||||
struct sigaction sa, saved_sigtstp;
|
||||
debug_decl(verify_user, SUDOERS_DEBUG_AUTH)
|
||||
debug_decl(verify_user, SUDOERS_DEBUG_AUTH);
|
||||
|
||||
/* Make sure we have at least one auth method. */
|
||||
if (auth_switch[0].name == NULL) {
|
||||
@@ -374,7 +374,7 @@ int
|
||||
sudo_auth_begin_session(struct passwd *pw, char **user_env[])
|
||||
{
|
||||
sudo_auth *auth;
|
||||
debug_decl(sudo_auth_begin_session, SUDOERS_DEBUG_AUTH)
|
||||
debug_decl(sudo_auth_begin_session, SUDOERS_DEBUG_AUTH);
|
||||
|
||||
for (auth = auth_switch; auth->name; auth++) {
|
||||
if (auth->begin_session && !IS_DISABLED(auth)) {
|
||||
@@ -393,7 +393,7 @@ sudo_auth_needs_end_session(void)
|
||||
{
|
||||
sudo_auth *auth;
|
||||
bool needed = false;
|
||||
debug_decl(sudo_auth_needs_end_session, SUDOERS_DEBUG_AUTH)
|
||||
debug_decl(sudo_auth_needs_end_session, SUDOERS_DEBUG_AUTH);
|
||||
|
||||
for (auth = auth_switch; auth->name; auth++) {
|
||||
if (auth->end_session && !IS_DISABLED(auth)) {
|
||||
@@ -413,7 +413,7 @@ sudo_auth_end_session(struct passwd *pw)
|
||||
{
|
||||
sudo_auth *auth;
|
||||
int status;
|
||||
debug_decl(sudo_auth_end_session, SUDOERS_DEBUG_AUTH)
|
||||
debug_decl(sudo_auth_end_session, SUDOERS_DEBUG_AUTH);
|
||||
|
||||
for (auth = auth_switch; auth->name; auth++) {
|
||||
if (auth->end_session && !IS_DISABLED(auth)) {
|
||||
@@ -438,7 +438,7 @@ auth_getpass(const char *prompt, int type, struct sudo_conv_callback *callback)
|
||||
struct sudo_conv_message msg;
|
||||
struct sudo_conv_reply repl;
|
||||
sigset_t mask, omask;
|
||||
debug_decl(auth_getpass, SUDOERS_DEBUG_AUTH)
|
||||
debug_decl(auth_getpass, SUDOERS_DEBUG_AUTH);
|
||||
|
||||
/* Mask user input if pwfeedback set and echo is off. */
|
||||
if (type == SUDO_CONV_PROMPT_ECHO_OFF && def_pwfeedback)
|
||||
@@ -474,7 +474,7 @@ void
|
||||
dump_auth_methods(void)
|
||||
{
|
||||
sudo_auth *auth;
|
||||
debug_decl(dump_auth_methods, SUDOERS_DEBUG_AUTH)
|
||||
debug_decl(dump_auth_methods, SUDOERS_DEBUG_AUTH);
|
||||
|
||||
sudo_printf(SUDO_CONV_INFO_MSG, _("Authentication methods:"));
|
||||
for (auth = auth_switch; auth->name; auth++)
|
||||
|
Reference in New Issue
Block a user