Changeset 43

Show
Ignore:
Timestamp:
05/05/08 11:35:28 (7 months ago)
Author:
ludovic.rousseau
Message:

remove unused static function is_spaced_str()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/pam_p11.c

    r41 r43  
    4949 
    5050extern int match_user(X509 * x509, const char *login); 
    51  
    52 /* 
    53 * comodity function that returns 1 on null, empty o spaced string 
    54 */ 
    55 static int is_spaced_str(const char *str) 
    56 { 
    57         char *pt = (char *)str; 
    58         if (!str) 
    59                 return 1; 
    60         if (!strcmp(str, "")) 
    61                 return 1; 
    62         for (; *pt; pt++) 
    63                 if (!isspace(*pt)) 
    64                         return 0; 
    65         return 1; 
    66 } 
    6751 
    6852PAM_EXTERN int pam_sm_authenticate(pam_handle_t * pamh, int flags, int argc,