Changeset 415 in openpam for trunk


Ignore:
Timestamp:
Feb 14, 2008, 6:24:25 PM (11 years ago)
Author:
Dag-Erling Smørgrav
Message:

Remove a few more namespace violations. Only one remains, which we can't
remove that without breaking binary compatibility.

Location:
trunk/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_dispatch.c

    r414 r415  
    4343
    4444#if !defined(OPENPAM_RELAX_CHECKS)
    45 static void _openpam_check_error_code(int, int);
     45static void openpam_check_error_code(int, int);
    4646#else
    47 #define _openpam_check_error_code(a, b)
     47#define openpam_check_error_code(a, b)
    4848#endif /* !defined(OPENPAM_RELAX_CHECKS) */
    4949
     
    108108                        debug = (openpam_get_option(pamh, "debug") != NULL);
    109109                        if (debug)
    110                                 ++_openpam_debug;
     110                                ++openpam_debug;
    111111                        openpam_log(PAM_LOG_DEBUG, "calling %s() in %s",
    112112                            _pam_sm_func_name[primitive], chain->module->path);
     
    118118                            pam_strerror(pamh, r));
    119119                        if (debug)
    120                                 --_openpam_debug;
     120                                --openpam_debug;
    121121                }
    122122
     
    138138                }
    139139
    140                 _openpam_check_error_code(primitive, r);
     140                openpam_check_error_code(primitive, r);
    141141
    142142                /*
     
    172172#if !defined(OPENPAM_RELAX_CHECKS)
    173173static void
    174 _openpam_check_error_code(int primitive, int r)
     174openpam_check_error_code(int primitive, int r)
    175175{
    176176        /* common error codes */
  • trunk/lib/openpam_impl.h

    r414 r415  
    5050extern const char *_pam_item_name[PAM_NUM_ITEMS];
    5151
    52 extern int _openpam_debug;
     52extern int openpam_debug;
    5353
    5454/*
  • trunk/lib/openpam_log.c

    r408 r415  
    4848
    4949#ifdef OPENPAM_DEBUG
    50 int _openpam_debug = 1;
     50int openpam_debug = 1;
    5151#else
    52 int _openpam_debug = 0;
     52int openpam_debug = 0;
    5353#endif
    5454
     
    6969        switch (level) {
    7070        case PAM_LOG_DEBUG:
    71                 if (!_openpam_debug)
     71                if (!openpam_debug)
    7272                        return;
    7373                priority = LOG_DEBUG;
     
    100100        switch (level) {
    101101        case PAM_LOG_DEBUG:
    102                 if (!_openpam_debug)
     102                if (!openpam_debug)
    103103                        return;
    104104                priority = LOG_DEBUG;
     
    137137 *              Debugging messages.
    138138 *              These messages are normally not logged unless the global
    139  *              integer variable :_openpam_debug is set to a non-zero
     139 *              integer variable :openpam_debug is set to a non-zero
    140140 *              value, in which case they are logged with a =syslog
    141141 *              priority of =LOG_DEBUG.
  • trunk/lib/openpam_static.c

    r408 r415  
    4444#ifdef OPENPAM_STATIC_MODULES
    4545
    46 SET_DECLARE(_openpam_static_modules, pam_module_t);
     46SET_DECLARE(openpam_static_modules, pam_module_t);
    4747
    4848/*
     
    5757        pam_module_t **module;
    5858
    59         SET_FOREACH(module, _openpam_static_modules) {
     59        SET_FOREACH(module, openpam_static_modules) {
    6060                if (strcmp((*module)->path, path) == 0)
    6161                        return (*module);
Note: See TracChangeset for help on using the changeset viewer.