Browse Source

Fixes suggested by Dialyzer

Paul Oliver 13 years ago
parent
commit
90694ce010
2 changed files with 2 additions and 4 deletions
  1. 1 3
      src/gproc.erl
  2. 1 1
      src/gproc_dist.erl

+ 1 - 3
src/gproc.erl

@@ -818,9 +818,7 @@ nb_wait1(_) ->
     ?THROW_GPROC_ERROR(badarg).
 
 nb_wait1(Node, {n,l,_} = Key) when is_atom(Node) ->
-    call(Node, {await, Key, self()}, l);
-nb_wait1(_, _) ->
-    ?THROW_GPROC_ERROR(badarg).
+    call(Node, {await, Key, self()}, l).
 
 
 %% @spec cancel_wait(Key::key(), Ref) -> ok

+ 1 - 1
src/gproc_dist.erl

@@ -701,7 +701,7 @@ update_counter_g({c,g,_} = Key, {Incr, Threshold, SetValue}, Pid)
     [Prev, New] = ets:update_counter(?TAB, {Key, Pid},
 				     [{3, 0}, {3, Incr, Threshold, SetValue}]),
     update_aggr_counter(Key, New - Prev, [{{Key,Pid},Pid,New}]);
-update_counter_g({c,l,_} = Key, Ops, Pid) when is_list(Ops) ->
+update_counter_g({c,g,_} = Key, Ops, Pid) when is_list(Ops) ->
     case ets:update_counter(?TAB, {Key, Pid},
 			    [{3, 0} | expand_ops(Ops)]) of
 	[_] ->