summaryrefslogtreecommitdiff
path: root/apps/plugins/searchengine/dbinterface.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/searchengine/dbinterface.c')
-rw-r--r--apps/plugins/searchengine/dbinterface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/searchengine/dbinterface.c b/apps/plugins/searchengine/dbinterface.c
index e10510604d..c3f1c7bfef 100644
--- a/apps/plugins/searchengine/dbinterface.c
+++ b/apps/plugins/searchengine/dbinterface.c
@@ -33,18 +33,18 @@
33 33
34#define FILERECORD2OFFSET(_x_) (rb->tagdbheader->filestart + _x_ * FILEENTRY_SIZE) 34#define FILERECORD2OFFSET(_x_) (rb->tagdbheader->filestart + _x_ * FILEENTRY_SIZE)
35 35
36struct entry *currententry; 36struct dbentry *currententry;
37struct dbglobals dbglobal; 37struct dbglobals dbglobal;
38static struct entry *entryarray; 38static struct dbentry *entryarray;
39 39
40int database_init() { 40int database_init() {
41 char *p; 41 char *p;
42 unsigned int i; 42 unsigned int i;
43 // allocate room for all entries 43 // allocate room for all entries
44 entryarray=(struct entry *)my_malloc(sizeof(struct entry)*rb->tagdbheader->filecount); 44 entryarray=(struct dbentry *)my_malloc(sizeof(struct dbentry)*rb->tagdbheader->filecount);
45 p=(char *)entryarray; 45 p=(char *)entryarray;
46 // zero all entries. 46 // zero all entries.
47 for(i=0;i<sizeof(struct entry)*rb->tagdbheader->filecount;i++) 47 for(i=0;i<sizeof(struct dbentry)*rb->tagdbheader->filecount;i++)
48 *(p++)=0; 48 *(p++)=0;
49 if(!*rb->tagdb_initialized) { 49 if(!*rb->tagdb_initialized) {
50 if(!rb->tagdb_init()) { 50 if(!rb->tagdb_init()) {