From: Gavin Sherry Date: Sat, 12 Jan 2002 07:38:35 +0000 (+0000) Subject: My bad. Left some stray debugging code in previous commit. X-Git-Tag: PRE_ISSET_PATCH~210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a8722a0ac0d5f329c1e85e5b8d011a04d8c2cd9;p=php My bad. Left some stray debugging code in previous commit. --- diff --git a/ext/dba/dba_db2.c b/ext/dba/dba_db2.c index 37973ed3f9..bbe729a0b6 100644 --- a/ext/dba/dba_db2.c +++ b/ext/dba/dba_db2.c @@ -47,8 +47,8 @@ DBA_OPEN_FUNC(db2) int gmode = 0; int filemode = 0644; struct stat check_stat; - int ret; int s = VCWD_STAT(info->path, &check_stat); + type = info->mode == DBA_READER ? DB_UNKNOWN : info->mode == DBA_TRUNC ? DB_BTREE : s ? DB_BTREE : DB_UNKNOWN; @@ -67,13 +67,11 @@ DBA_OPEN_FUNC(db2) filemode = Z_LVAL_PP(info->argv[0]); } - if(!(ret = db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp))) { + if(db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp)) { info->dbf = malloc(sizeof(dba_db2_data)); memset(info->dbf, 0, sizeof(dba_db2_data)); ((dba_db2_data *) info->dbf)->dbp = dbp; return SUCCESS; - } else { - printf("Failed: type = %i\ngmode = %i\n%s\n",type,gmode,strerror(ret)); } return FAILURE; }