X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=chise.c;h=e76172b315a054cd73e07a6ddf02bacdbdb61c43;hb=af01d3b18af7248287f0cf59d33ec0d53873bf57;hp=0568eb06b8c7297011b5cb33597696aa09a7330c;hpb=cdf45609d6ee9a8983a859cc653c53f4a1b0a0e4;p=chise%2Flibchise.git diff --git a/chise.c b/chise.c index 0568eb0..e76172b 100644 --- a/chise.c +++ b/chise.c @@ -11,6 +11,7 @@ #include "chise-name.h" const unsigned char chise_db_dir[] = CHISE_DB_DIR; +const unsigned char chise_system_db_dir[] = CHISE_SI_DB_DIR; CHISE_Feature_Table* chise_ds_open_feature_table (CHISE_DS *ds, const char *feature); @@ -63,7 +64,7 @@ struct CHISE_DS CHISE_DS* CHISE_DS_open (CHISE_DS_Type type, const unsigned char *location, - DBTYPE subtype, int modemask) + int subtype, int modemask) { CHISE_DS *ds = (CHISE_DS*)malloc (sizeof (CHISE_DS)); size_t len = strlen (location); @@ -72,7 +73,7 @@ CHISE_DS_open (CHISE_DS_Type type, const unsigned char *location, return NULL; ds->type = type; - ds->subtype = subtype; + ds->subtype = ( (subtype != 0) ? subtype : DB_HASH ); ds->modemask = modemask; ds->location = (unsigned char*)malloc (len + 1); if (ds->location == NULL)