diff options
author | Anders Svensson <[email protected]> | 2012-03-12 10:31:42 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2012-03-26 12:34:24 +0200 |
commit | 74ba63f10fd15385882f27877671d2d6714a0a20 (patch) | |
tree | 4bb35cdbfa84355b212b16ae5650f9ed879a80c5 /lib/diameter/examples/code/server_cb.erl | |
parent | d6dbbe0031ea151ec14dae644d0a7436d0490b48 (diff) | |
download | otp-74ba63f10fd15385882f27877671d2d6714a0a20.tar.gz otp-74ba63f10fd15385882f27877671d2d6714a0a20.tar.bz2 otp-74ba63f10fd15385882f27877671d2d6714a0a20.zip |
Update include paths in example code
Paths changed as a consequence of OTP-9638. Don't use paths under src
however, assume an installation.
Diffstat (limited to 'lib/diameter/examples/code/server_cb.erl')
-rw-r--r-- | lib/diameter/examples/code/server_cb.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/diameter/examples/code/server_cb.erl b/lib/diameter/examples/code/server_cb.erl index 43b8e24b5c..0f6eb32ed6 100644 --- a/lib/diameter/examples/code/server_cb.erl +++ b/lib/diameter/examples/code/server_cb.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2010-2011. All Rights Reserved. +%% Copyright Ericsson AB 2010-2012. 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 @@ -24,7 +24,7 @@ -module(server_cb). -include_lib("diameter/include/diameter.hrl"). --include_lib("diameter/src/app/diameter_gen_base_rfc3588.hrl"). +-include_lib("diameter/include/diameter_gen_base_rfc3588.hrl"). %% diameter callbacks -export([peer_up/3, @@ -76,7 +76,7 @@ handle_request(#diameter_packet{msg = Req, errors = []}, _SvcName, {_, Caps}) %% ... or one that wasn't. 3xxx errors are answered by diameter itself %% but these are 5xxx errors for which we must contruct a reply. %% diameter will set Result-Code and Failed-AVP's. -handle_request(#diameter_packet{msg = Req} = Pkt, _SvcName, {_, Caps}) +handle_request(#diameter_packet{msg = Req}, _SvcName, {_, Caps}) when is_record(Req, diameter_base_RAR) -> #diameter_caps{origin_host = {OH,_}, origin_realm = {OR,_}} |