char *
gen_pass (unsigned int len)
{
- const unsigned char autogen[] =
+ static const unsigned char autogen[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890.,";
int i;
Salt salt;
char *
hash_crypt (const char *pw_in, Salt * salt)
{
- const unsigned char crypt64[] =
+ static const unsigned char crypt64[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890./";
char *crypted_pw = NULL;
Salt lsalt;
if (filtpattern)
{
char filter[BUFSIZ];
- LDAPMessage *result = NULL, *e = NULL;
- char *attrs[3] = {"dn", NULL, NULL};
+ LDAPMessage *result = NULL, *e;
+ char *attrs[3];
+ attrs[0] = "dn";
attrs[1] = pwattr;
+ attrs[2] = NULL;
/* search */
sprintf (filter, "%s", filtpattern);