summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Sherry <swm@php.net>2002-01-12 07:38:35 +0000
committerGavin Sherry <swm@php.net>2002-01-12 07:38:35 +0000
commit0a8722a0ac0d5f329c1e85e5b8d011a04d8c2cd9 (patch)
treeb4f73d7ed67e8778613c1529ecfa221f228d8397
parente8baeb304a2390a03756d2e503ab275bc2c70854 (diff)
downloadphp-git-0a8722a0ac0d5f329c1e85e5b8d011a04d8c2cd9.tar.gz
My bad. Left some stray debugging code in previous commit.
-rw-r--r--ext/dba/dba_db2.c6
1 files changed, 2 insertions, 4 deletions
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;
}