return result;
}
+
/*
see if two dns records match
*/
-static bool b9_record_match(struct dlz_bind9_data *state,
- struct dnsp_DnssrvRpcRecord *rec1, struct dnsp_DnssrvRpcRecord *rec2)
+static bool b9_record_match(struct dnsp_DnssrvRpcRecord *rec1,
+ struct dnsp_DnssrvRpcRecord *rec2)
{
bool status;
int i;
rec1->data.soa.expire == rec2->data.soa.expire &&
rec1->data.soa.minimum == rec2->data.soa.minimum;
default:
- state->log(ISC_LOG_ERROR, "samba_dlz b9_record_match: unhandled record type %u",
- rec1->wType);
break;
}
first = num_recs;
}
- /* there are existing records. We need to see if this will
+ /* there may be existing records. We need to see if this will
* replace a record or add to it
*/
for (i=first; i < num_recs; i++) {
- if (b9_record_match(state, rec, &recs[i])) {
+ if (b9_record_match(rec, &recs[i])) {
break;
}
}
}
for (i=0; i < num_recs; i++) {
- if (b9_record_match(state, rec, &recs[i])) {
+ if (b9_record_match(rec, &recs[i])) {
recs[i] = (struct dnsp_DnssrvRpcRecord) {
.wType = DNS_TYPE_TOMBSTONE,
};