Changeset 164

Show
Ignore:
Timestamp:
02/24/09 14:37:06 (1 year ago)
Author:
lrousseau
Message:

do not use the same name "function_ptr" for a type and argument

src/dyn_unix.c:57: warning: declaration of ‘function_ptr’ shadows a global declaration
src/dyn_generic.h:61: warning: shadowed declaration is here

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pykcs11/trunk/src/dyn_unix.c

    r19 r164  
    5555} /* SYS_dyn_CloseLibrary */ 
    5656 
    57 int SYS_dyn_GetAddress(void *handle, function_ptr *function_ptr, 
     57int SYS_dyn_GetAddress(void *handle, function_ptr *func_ptr, 
    5858        const char *function_name) 
    5959{ 
     
    6565                function_name); 
    6666 
    67         *function_ptr = NULL; 
    68         *function_ptr = dlsym(handle, new_function_name); 
     67        *func_ptr = NULL; 
     68        *func_ptr = dlsym(handle, new_function_name); 
    6969 
    7070        /* Failed? Try again without the leading underscore */ 
    71         if (*function_ptr == NULL) 
    72                 *function_ptr = dlsym(handle, function_name); 
     71        if (*func_ptr == NULL) 
     72                *func_ptr = dlsym(handle, function_name); 
    7373 
    74         if (*function_ptr == NULL) 
     74        if (*func_ptr == NULL) 
    7575        { 
    7676                Log3("%s: %s", function_name, dlerror()); 
(C) 2006 bit4id srl, for informations please contact info@bit4id.com
visitors since August 21, 2006