Cleanup previous commit

This commit is contained in:
Howard Chu 2001-12-08 11:15:55 +00:00
parent ad9d17d537
commit fd93e0721b
2 changed files with 4 additions and 6 deletions

View file

@ -671,7 +671,7 @@ int
bdb_dn2id_add(
BackendDB *be,
DB_TXN *txn,
const char *pdn,
char *pdn,
Entry *e )
{
struct bdb_info *bdb = (struct bdb_info *) be->be_private;

View file

@ -373,7 +373,7 @@ int dn_rdnlen(
Backend *be,
const char *dn_in )
{
char *dn, *s;
char *s;
int inquote;
if( dn_in == NULL ) {
@ -392,11 +392,9 @@ int dn_rdnlen(
return( 0 );
}
dn = dn_in;
inquote = 0;
for ( s = dn; *s; s++ ) {
for ( s = (char *)dn_in; *s; s++ ) {
if ( *s == '\\' ) {
if ( *(s + 1) ) {
s++;
@ -416,7 +414,7 @@ int dn_rdnlen(
}
}
return( s - dn );
return( s - dn_in );
}
char * dn_rdn(