aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/agent/snmp_generic_mnesia.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-12-08 11:35:02 +0100
committerMicael Karlberg <[email protected]>2012-01-05 15:12:40 +0100
commitf7fad207607f40a41bc7f54854d7dc73dce79be9 (patch)
treee1f241aed5603095273a465d2b9e18a2b060b223 /lib/snmp/src/agent/snmp_generic_mnesia.erl
parentca63da8646adc2eeb514d6f19943bda9deaf7b39 (diff)
downloadotp-f7fad207607f40a41bc7f54854d7dc73dce79be9.tar.gz
otp-f7fad207607f40a41bc7f54854d7dc73dce79be9.tar.bz2
otp-f7fad207607f40a41bc7f54854d7dc73dce79be9.zip
[snmp/agent] Found another old-style fun (2-tuple)
OTP-9783
Diffstat (limited to 'lib/snmp/src/agent/snmp_generic_mnesia.erl')
-rw-r--r--lib/snmp/src/agent/snmp_generic_mnesia.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/snmp/src/agent/snmp_generic_mnesia.erl b/lib/snmp/src/agent/snmp_generic_mnesia.erl
index a73aad5b33..ce42af404b 100644
--- a/lib/snmp/src/agent/snmp_generic_mnesia.erl
+++ b/lib/snmp/src/agent/snmp_generic_mnesia.erl
@@ -121,7 +121,7 @@ table_func(set, RowIndex, Cols, Name) ->
fun() ->
snmp_generic:table_set_row(
{Name, mnesia}, nofunc,
- {snmp_generic_mnesia, table_try_make_consistent},
+ fun table_try_make_consistent/2,
RowIndex, Cols)
end) of
{atomic, Value} ->
@@ -368,7 +368,8 @@ table_set_elements(Name, RowIndex, Cols) ->
_ -> false
end.
table_set_elements(Name, RowIndex, Cols, ConsFunc) ->
- #table_info{index_types = Indexes, first_own_index = FirstOwnIndex} =
+ #table_info{index_types = Indexes,
+ first_own_index = FirstOwnIndex} =
snmp_generic:table_info(Name),
AddCol = if
FirstOwnIndex == 0 -> 2;