Skip to content

Commit

Permalink
fix remove arity
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Yakamercan committed Aug 14, 2012
1 parent 779c8bf commit ef34b62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion c_src/cberl_nif.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static ErlNifFunc nif_funcs[] =
{"unlock", 3, cberl_nif_unlock}, {"unlock", 3, cberl_nif_unlock},
{"mtouch", 3, cberl_nif_mtouch}, {"mtouch", 3, cberl_nif_mtouch},
{"arithmetic", 6, cberl_nif_arithmetic}, {"arithmetic", 6, cberl_nif_arithmetic},
{"remove", 2, cberl_nif_remove}, {"remove", 3, cberl_nif_remove},
{"destroy", 1, cberl_nif_destroy} {"destroy", 1, cberl_nif_destroy}
}; };


Expand Down
4 changes: 2 additions & 2 deletions src/cberl_nif.erl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
unlock/3, unlock/3,
mtouch/3, mtouch/3,
arithmetic/6, arithmetic/6,
remove/2, remove/3,
destroy/1]). destroy/1]).


-on_load(init/0). -on_load(init/0).
Expand Down Expand Up @@ -53,7 +53,7 @@ mtouch(_Instance, _Key, _Exp) ->
arithmetic(_Instance, _Key, _Delta, _Exp, _Create, _Initial) -> arithmetic(_Instance, _Key, _Delta, _Exp, _Create, _Initial) ->
?nif_stub. ?nif_stub.


remove(_Instance, _Key) -> remove(_Instance, _Key, _Cas) ->
?nif_stub. ?nif_stub.


destroy(_Instance) -> destroy(_Instance) ->
Expand Down

0 comments on commit ef34b62

Please sign in to comment.