aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/net_adm.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-04-25 16:14:10 +0200
committerHans Bolinder <[email protected]>2013-05-06 12:14:13 +0200
commitf52452309cf68da898a1768eb6e8b6767e602bc7 (patch)
treec24a32ecedfd7f4baaa3c8f4e9e474a7dbef738b /lib/kernel/src/net_adm.erl
parent88eea0e9a22099a1425553381cfb72f646cb2abf (diff)
downloadotp-f52452309cf68da898a1768eb6e8b6767e602bc7.tar.gz
otp-f52452309cf68da898a1768eb6e8b6767e602bc7.tar.bz2
otp-f52452309cf68da898a1768eb6e8b6767e602bc7.zip
Fix unmatched_return warnings in kernel
Diffstat (limited to 'lib/kernel/src/net_adm.erl')
-rw-r--r--lib/kernel/src/net_adm.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/src/net_adm.erl b/lib/kernel/src/net_adm.erl
index 9b2dac9544..3f5eac7822 100644
--- a/lib/kernel/src/net_adm.erl
+++ b/lib/kernel/src/net_adm.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2011. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2013. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -133,7 +133,7 @@ dns_hostname(Hostname) ->
-spec ping_list([atom()]) -> [atom()].
ping_list(Nodelist) ->
- net_kernel:monitor_nodes(true),
+ ok = net_kernel:monitor_nodes(true),
Sofar = ping_first(Nodelist, nodes()),
collect_new(Sofar, Nodelist).
@@ -159,7 +159,7 @@ collect_new(Sofar, Nodelist) ->
collect_new([Node | Sofar], Nodelist)
end
after 3000 ->
- net_kernel:monitor_nodes(false),
+ ok = net_kernel:monitor_nodes(false),
Sofar
end.