/* open fire host and slora report data database */ int open_report_db(void) { ; char sql[SQL_COMMAND_LEN]; char *errmsg = NULL; const char *db_file = REPORT_DB_FILE; /* If report database already exist, then we will just open it */ ==access(db_file,…