Changeset 675


Ignore:
Timestamp:
01/16/15 14:48:06 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Rename internal updateRec() sub in dns-rpc.cgi to rpc_updateRec() to
make it clear which variant is getting called.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns-rpc.cgi

    r673 r675  
    8484        'dnsdb.getRecCount'     => \&getRecCount,
    8585        'dnsdb.addRec'          => \&rpc_addRec,
    86         'dnsdb.updateRec'       => \&updateRec,
     86        'dnsdb.updateRec'       => \&rpc_updateRec,
    8787#sub downconvert {
    8888        'dnsdb.addOrUpdateRevRec'       => \&addOrUpdateRevRec,
     
    493493} # rpc_addRec
    494494
    495 sub updateRec {
     495sub rpc_updateRec {
    496496  my %args = @_;
    497497
     
    558558                || $rec->{type} == 65282 || $rec->{type} == 65283 || $rec->{type} == 65284;
    559559          next unless $rec->{val} eq $filt;     # make sure we really update the record we want to update.
    560           updateRec(defrec =>'n', revrec => 'y', id => $rec->{record_id},
     560          rpc_updateRec(defrec =>'n', revrec => 'y', id => $rec->{record_id},
    561561            parent_id => $zonelist->[0]->{rdns_id}, address => "$cidr", %args);
    562562          $flag = 1;
Note: See TracChangeset for help on using the changeset viewer.