Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
freediameter
Commits
95212eba
Commit
95212eba
authored
Oct 28, 2010
by
Sebastien Decugis
Browse files
Fix a couple of compilation warnings
parent
dae1e949
Changes
2
Hide whitespace changes
Inline
Side-by-side
extensions/app_radgw/rgwx_sip.c
View file @
95212eba
...
...
@@ -446,7 +446,7 @@ static int sip_rad_req( struct rgwp_config * cs, struct session ** session, stru
int
len
;
/* Create a new Session-Id. The format is: {fqdn;hi32;lo32;username;diamid} */
CHECK_MALLOC
(
sid
=
malloc
(
un_len
+
1
/* ';' */
+
fd_g_config
->
cnf_diamid_len
+
1
/* '\0' */
)
);
len
=
sprintf
(
sid
,
"%.*s;%s"
,
un_len
,
un
,
fd_g_config
->
cnf_diamid
);
len
=
sprintf
(
sid
,
"%.*s;%s"
,
(
int
)
un_len
,
un
,
fd_g_config
->
cnf_diamid
);
CHECK_FCT
(
fd_sess_new
(
session
,
fqdn
,
sid
,
len
)
);
free
(
sid
);
}
...
...
extensions/rt_ereg/rtereg.c
View file @
95212eba
...
...
@@ -144,9 +144,9 @@ static int rtereg_out(void * cbdata, struct msg * msg, struct fd_list * candidat
struct
avp_hdr
*
ahdr
=
NULL
;
CHECK_FCT
(
fd_msg_avp_hdr
(
avp
,
&
ahdr
)
);
if
(
ahdr
->
avp_value
!=
NULL
)
{
#ifndef HAVE_REG_STARTEND
int
ret
;
#ifndef HAVE_REG_STARTEND
/* Lock the buffer */
CHECK_POSIX
(
pthread_mutex_lock
(
&
mtx
)
);
...
...
@@ -167,7 +167,7 @@ static int rtereg_out(void * cbdata, struct msg * msg, struct fd_list * candidat
CHECK_FCT
(
ret
);
#else
/* HAVE_REG_STARTEND */
CHECK_FCT
(
proceed
(
ahdr
->
avp_value
->
os
.
data
,
ahdr
->
avp_value
->
os
.
len
,
candidates
)
);
CHECK_FCT
(
proceed
(
(
char
*
)
ahdr
->
avp_value
->
os
.
data
,
ahdr
->
avp_value
->
os
.
len
,
candidates
)
);
#endif
/* HAVE_REG_STARTEND */
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment