[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldbm.c:275 - not enough args for open (db-3.0.55) (ITS#1306)



Is your patch correct?  Shouldn't the extra argument
come before the flags?  That is,
        err = env->open( env, home, NULL, envFlags, 0 );

Kurt

At 03:32 AM 2001-09-03, jimd@siu.edu wrote:
>Full_Name: Jim Dutton
>Version: 2.0.12
>OS: (Amiga) NetBSD-1.4.2
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (131.230.179.116)
>
>
>  Entering subdirectory libldbm
>gcc -g -O2 -I../../include -I../../include -I/usr/local/include
>-I/usr/local/ssl/include  -I/usr/local/include -I/usr/local/ssl/include   -c
>ldbm.c
>ldbm.c: In function `ldbm_initialize_env':
>ldbm.c:275: warning: passing arg 3 makes pointer from integer without a cast
>ldbm.c:275: too few arguments to function
>*** Error code 1
>
>
>BUG FIX:
>
>/* from db.h (v3.0.55):
>        int  (*open) __P((DB_ENV *,
>                        const char *, char * const *, u_int32_t, int));
>*/
>*** ldbm.c.orig Mon Sep  3 04:50:57 2001
>--- ldbm.c      Mon Sep  3 04:51:45 2001
>***************
>*** 272,278 ****
>  
>        envFlags |= DB_INIT_MPOOL | DB_INIT_CDB | DB_USE_ENVIRON;
>  
>!       err = env->open( env, home, envFlags, 0 );
>  
>        if ( err != 0 )
>        {
>--- 272,278 ----
>  
>        envFlags |= DB_INIT_MPOOL | DB_INIT_CDB | DB_USE_ENVIRON;
>  
>!       err = env->open( env, home, envFlags, 0 ,0 );
>  
>        if ( err != 0 )
>        {