summaryrefslogtreecommitdiff
path: root/ext/dba
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-12-14 22:07:29 +0000
committerMarcus Boerger <helly@php.net>2003-12-14 22:07:29 +0000
commit620bf0c37f0fdc14304f026eb9fc9efb15eceebc (patch)
tree916b0ec2cb670b5738b30215f2639a7eec84f55f /ext/dba
parent61e6cd2a1aff34d55a6b4fbea073dea4c4b779ab (diff)
downloadphp-git-620bf0c37f0fdc14304f026eb9fc9efb15eceebc.tar.gz
Not needed
Diffstat (limited to 'ext/dba')
-rw-r--r--ext/dba/libinifile/inifile.c3
-rw-r--r--ext/dba/libinifile/inifile.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/ext/dba/libinifile/inifile.c b/ext/dba/libinifile/inifile.c
index 15bd9c91da..2e624128b3 100644
--- a/ext/dba/libinifile/inifile.c
+++ b/ext/dba/libinifile/inifile.c
@@ -83,7 +83,7 @@ void inifile_line_free(line_type *ln)
inifile * inifile_alloc(php_stream *fp, int readonly, int persistent TSRMLS_DC)
{
inifile *dba;
- int fd = 0;
+ int fd;
if (!readonly) {
if (!php_stream_truncate_supported(fp)) {
@@ -98,7 +98,6 @@ inifile * inifile_alloc(php_stream *fp, int readonly, int persistent TSRMLS_DC)
dba = pemalloc(sizeof(inifile), persistent);
memset(dba, 0, sizeof(inifile));
dba->fp = fp;
- dba->fd = fd;
dba->readonly = readonly;
return dba;
}
diff --git a/ext/dba/libinifile/inifile.h b/ext/dba/libinifile/inifile.h
index d2f34bbacd..ccba86c29f 100644
--- a/ext/dba/libinifile/inifile.h
+++ b/ext/dba/libinifile/inifile.h
@@ -40,7 +40,6 @@ typedef struct {
char *lockfn;
int lockfd;
php_stream *fp;
- int fd;
int readonly;
line_type curr;
line_type next;