Remove a few more namespace violations. Only one remains, which we can't
remove that without breaking binary compatibility. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@415 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
8865782b1d
commit
d0bf52fbb1
4 changed files with 14 additions and 14 deletions
|
@ -42,9 +42,9 @@
|
|||
#include "openpam_impl.h"
|
||||
|
||||
#if !defined(OPENPAM_RELAX_CHECKS)
|
||||
static void _openpam_check_error_code(int, int);
|
||||
static void openpam_check_error_code(int, int);
|
||||
#else
|
||||
#define _openpam_check_error_code(a, b)
|
||||
#define openpam_check_error_code(a, b)
|
||||
#endif /* !defined(OPENPAM_RELAX_CHECKS) */
|
||||
|
||||
/*
|
||||
|
@ -107,7 +107,7 @@ openpam_dispatch(pam_handle_t *pamh,
|
|||
pamh->current = chain;
|
||||
debug = (openpam_get_option(pamh, "debug") != NULL);
|
||||
if (debug)
|
||||
++_openpam_debug;
|
||||
++openpam_debug;
|
||||
openpam_log(PAM_LOG_DEBUG, "calling %s() in %s",
|
||||
_pam_sm_func_name[primitive], chain->module->path);
|
||||
r = (chain->module->func[primitive])(pamh, flags,
|
||||
|
@ -117,7 +117,7 @@ openpam_dispatch(pam_handle_t *pamh,
|
|||
chain->module->path, _pam_sm_func_name[primitive],
|
||||
pam_strerror(pamh, r));
|
||||
if (debug)
|
||||
--_openpam_debug;
|
||||
--openpam_debug;
|
||||
}
|
||||
|
||||
if (r == PAM_IGNORE)
|
||||
|
@ -137,7 +137,7 @@ openpam_dispatch(pam_handle_t *pamh,
|
|||
continue;
|
||||
}
|
||||
|
||||
_openpam_check_error_code(primitive, r);
|
||||
openpam_check_error_code(primitive, r);
|
||||
|
||||
/*
|
||||
* Record the return code from the first module to
|
||||
|
@ -171,7 +171,7 @@ openpam_dispatch(pam_handle_t *pamh,
|
|||
|
||||
#if !defined(OPENPAM_RELAX_CHECKS)
|
||||
static void
|
||||
_openpam_check_error_code(int primitive, int r)
|
||||
openpam_check_error_code(int primitive, int r)
|
||||
{
|
||||
/* common error codes */
|
||||
if (r == PAM_SUCCESS ||
|
||||
|
|
|
@ -49,7 +49,7 @@ extern const char *_pam_sm_func_name[PAM_NUM_PRIMITIVES];
|
|||
extern const char *_pam_err_name[PAM_NUM_ERRORS];
|
||||
extern const char *_pam_item_name[PAM_NUM_ITEMS];
|
||||
|
||||
extern int _openpam_debug;
|
||||
extern int openpam_debug;
|
||||
|
||||
/*
|
||||
* Control flags
|
||||
|
|
|
@ -47,9 +47,9 @@
|
|||
#include "openpam_impl.h"
|
||||
|
||||
#ifdef OPENPAM_DEBUG
|
||||
int _openpam_debug = 1;
|
||||
int openpam_debug = 1;
|
||||
#else
|
||||
int _openpam_debug = 0;
|
||||
int openpam_debug = 0;
|
||||
#endif
|
||||
|
||||
#if !defined(openpam_log)
|
||||
|
@ -68,7 +68,7 @@ openpam_log(int level, const char *fmt, ...)
|
|||
|
||||
switch (level) {
|
||||
case PAM_LOG_DEBUG:
|
||||
if (!_openpam_debug)
|
||||
if (!openpam_debug)
|
||||
return;
|
||||
priority = LOG_DEBUG;
|
||||
break;
|
||||
|
@ -99,7 +99,7 @@ _openpam_log(int level, const char *func, const char *fmt, ...)
|
|||
|
||||
switch (level) {
|
||||
case PAM_LOG_DEBUG:
|
||||
if (!_openpam_debug)
|
||||
if (!openpam_debug)
|
||||
return;
|
||||
priority = LOG_DEBUG;
|
||||
break;
|
||||
|
@ -136,7 +136,7 @@ _openpam_log(int level, const char *func, const char *fmt, ...)
|
|||
* =PAM_LOG_DEBUG:
|
||||
* Debugging messages.
|
||||
* These messages are normally not logged unless the global
|
||||
* integer variable :_openpam_debug is set to a non-zero
|
||||
* integer variable :openpam_debug is set to a non-zero
|
||||
* value, in which case they are logged with a =syslog
|
||||
* priority of =LOG_DEBUG.
|
||||
* =PAM_LOG_VERBOSE:
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
#ifdef OPENPAM_STATIC_MODULES
|
||||
|
||||
SET_DECLARE(_openpam_static_modules, pam_module_t);
|
||||
SET_DECLARE(openpam_static_modules, pam_module_t);
|
||||
|
||||
/*
|
||||
* OpenPAM internal
|
||||
|
@ -56,7 +56,7 @@ openpam_static(const char *path)
|
|||
{
|
||||
pam_module_t **module;
|
||||
|
||||
SET_FOREACH(module, _openpam_static_modules) {
|
||||
SET_FOREACH(module, openpam_static_modules) {
|
||||
if (strcmp((*module)->path, path) == 0)
|
||||
return (*module);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue