diff options
author | Ingela Anderton Andin <[email protected]> | 2015-06-10 13:59:48 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2015-06-15 17:39:35 +0200 |
commit | d30b4ad1fac539b028fb8067caa6ff9c0cfbf004 (patch) | |
tree | c23b836ddb3b4c719a1d005da6966a4916d4a797 /lib/inets/src/http_server/httpd_example.erl | |
parent | 50297560373fb34bb30b62a91969e9737aa07a61 (diff) | |
download | otp-d30b4ad1fac539b028fb8067caa6ff9c0cfbf004.tar.gz otp-d30b4ad1fac539b028fb8067caa6ff9c0cfbf004.tar.bz2 otp-d30b4ad1fac539b028fb8067caa6ff9c0cfbf004.zip |
inets: Remove use of httpd_conf:make_integer/1
Diffstat (limited to 'lib/inets/src/http_server/httpd_example.erl')
-rw-r--r-- | lib/inets/src/http_server/httpd_example.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/inets/src/http_server/httpd_example.erl b/lib/inets/src/http_server/httpd_example.erl index 6fc07f033c..b2c2ea7480 100644 --- a/lib/inets/src/http_server/httpd_example.erl +++ b/lib/inets/src/http_server/httpd_example.erl @@ -126,9 +126,7 @@ delay(Time) when is_integer(Time) -> i("httpd_example:delay(~p) -> done, now reply",[Time]), delay_reply("delay ok"); delay(Time) when is_list(Time) -> - delay(httpd_conf:make_integer(Time)); -delay({ok,Time}) when is_integer(Time) -> - delay(Time); + delay(list_to_integer(Time)); delay({error,_Reason}) -> i("delay -> called with invalid time"), delay_reply("delay failed: invalid delay time"). |