diff options
author | Micael Karlberg <[email protected]> | 2011-03-03 18:56:43 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-03-03 18:56:43 +0100 |
commit | 2a1765542adc276ad8336307d1150a2aab8d837f (patch) | |
tree | 8c9aa8fb9f7c2e1b08e6b28ac1b708beed310664 /lib/megaco/src/engine/megaco_timer.erl | |
parent | 890ccb33dd4ffd754a232a676433b3bc3b469bc0 (diff) | |
parent | c4241524ea42871f6cb601783ea56e18449f7cc1 (diff) | |
download | otp-2a1765542adc276ad8336307d1150a2aab8d837f.tar.gz otp-2a1765542adc276ad8336307d1150a2aab8d837f.tar.bz2 otp-2a1765542adc276ad8336307d1150a2aab8d837f.zip |
Merge branch 'bmk/megaco/miscellaneous_dialyzer/OTP-9075' into dev
Fixing miscellaneous "things" "detected" by dialyzer.
Also updated end date for a number of erts files.
Diffstat (limited to 'lib/megaco/src/engine/megaco_timer.erl')
-rw-r--r-- | lib/megaco/src/engine/megaco_timer.erl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/megaco/src/engine/megaco_timer.erl b/lib/megaco/src/engine/megaco_timer.erl index 9f524523a8..1336be0b5b 100644 --- a/lib/megaco/src/engine/megaco_timer.erl +++ b/lib/megaco/src/engine/megaco_timer.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2007-2009. All Rights Reserved. +%% Copyright Ericsson AB 2007-2011. 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 @@ -42,7 +42,7 @@ %% NewTimer = megaco_timer() %% TimeoutTime = infinity | integer() %% -init(SingleWaitFor) when SingleWaitFor == infinity -> +init(SingleWaitFor) when SingleWaitFor =:= infinity -> {SingleWaitFor, timeout}; init(SingleWaitFor) when is_integer(SingleWaitFor) and (SingleWaitFor >= 0) -> {SingleWaitFor, timeout}; @@ -76,17 +76,17 @@ verify(#megaco_incr_timer{wait_for = WaitFor, factor = Factor, incr = Incr, max_retries = MaxRetries}) -> - (megaco_config:verify_strict_uint(WaitFor) and - megaco_config:verify_strict_uint(Factor) and - megaco_config:verify_strict_int(Incr) and + (megaco_config_misc:verify_strict_uint(WaitFor) and + megaco_config_misc:verify_strict_uint(Factor) and + megaco_config_misc:verify_strict_int(Incr) and verify_max_retries(MaxRetries)); verify(Timer) -> - megaco_config:verify_uint(Timer). + megaco_config_misc:verify_uint(Timer). verify_max_retries(infinity_restartable) -> true; verify_max_retries(Val) -> - megaco_config:verify_uint(Val). + megaco_config_misc:verify_uint(Val). %%----------------------------------------------------------------- |