aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/examples/code/server_cb.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2012-03-26 12:38:23 +0200
committerAnders Svensson <[email protected]>2012-03-26 12:38:23 +0200
commitd99a08538c4445dc34da0ca6246afb84123d295f (patch)
tree4bb35cdbfa84355b212b16ae5650f9ed879a80c5 /lib/diameter/examples/code/server_cb.erl
parent2c8eec6c20f7214d59d174516007065486f7173f (diff)
parent74ba63f10fd15385882f27877671d2d6714a0a20 (diff)
downloadotp-d99a08538c4445dc34da0ca6246afb84123d295f.tar.gz
otp-d99a08538c4445dc34da0ca6246afb84123d295f.tar.bz2
otp-d99a08538c4445dc34da0ca6246afb84123d295f.zip
Merge branch 'anders/diameter/release_R15B01' into maint
* anders/diameter/release_R15B01: Update include paths in example code appup for OTP-9824 vsn -> 1.1
Diffstat (limited to 'lib/diameter/examples/code/server_cb.erl')
-rw-r--r--lib/diameter/examples/code/server_cb.erl6
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,_}}