openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/nss-pam-ldapd/0.9.8-r0/nss-pam-ldapd-0.9.8/nslcd/common.c
unsigned long int binsid2id(const char* binsid)
{
    int i;
    /* find the position of the last security id */
    i = 2 + 6 + ((((unsigned int)binsid[1]) & 0xff) - 1) * 4;
    return (((unsigned long int)binsid[i]) & 0xff) |
           ((((unsigned long int)binsid[i + 1]) & 0xff) << 8) |
           ((((unsigned long int)binsid[i + 2]) & 0xff) << 16) |
           ((((unsigned long int)binsid[i + 3]) & 0xff) << 24);
}
/* return the last security identifier of the binary sid */
return the last security identifier of the binary sid
return the last security identifier of the binary sid
unsigned long int binsid2id(const char* binsid)
{
    int i;
    i = 2 + 6 + ((((unsigned int)binsid[1]) & 0xff) - 1) * 4;
    return (((unsigned long int)binsid[i]) & 0xff) |
           ((((unsigned long int)binsid[i + 1]) & 0xff) << 8) |
           ((((unsigned long int)binsid[i + 2]) & 0xff) << 16) |
           ((((unsigned long int)binsid[i + 3]) & 0xff) << 24);
}
unsigned long int binsid2id ( const char * binsid ) { int i ; i = 2 + 6 + ( ( ( ( unsigned int ) binsid [ 1 ] ) & 0xff ) - 1 ) * 4 ; return ( ( ( unsigned long int ) binsid [ i ] ) & 0xff ) | ( ( ( ( unsigned long int ) binsid [ i + 1 ] ) & 0xff ) << 8 ) | ( ( ( ( unsigned long int ) binsid [ i + 2 ] ) & 0xff ) << 16 ) | ( ( ( ( unsigned long int ) binsid [ i + 3 ] ) & 0xff ) << 24 ) ; }
return the last security identifier of the binary sid
return the last security identifier of the binary sid
/* find the position of the last security id */