- if (global.dbtype & DB_TYPE_MEMORY) status = asl_memory_match(global.memory_db, query, res, lastid, startid, ucount, dir, ruid, rgid);
- else status = asl_mini_memory_match(global.mini_db, query, res, lastid, startid, ucount, dir);
+ if (global.dbtype & DB_TYPE_MEMORY)
+ {
+ status = asl_memory_match(global.memory_db, query, res, lastid, startid, ucount, dir, ruid, rgid);
+ }
+ else if (global.dbtype & DB_TYPE_MINI)
+ {
+ status = asl_mini_memory_match(global.mini_db, query, res, lastid, startid, ucount, dir);
+ }
+ else if (global.disaster_occurred != 0)
+ {
+ /* KernelEventAgent calls us to get the kernel disaster messages. */
+ status = asl_mini_memory_match(global.mini_db, query, res, lastid, startid, ucount, dir);
+ }