aboutsummaryrefslogtreecommitdiff
path: root/lib/libradius
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2007-04-04 02:59:54 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2007-04-04 02:59:54 +0000
commitc5384974d99d960de4e92f8a2cc1e3ad10aa6248 (patch)
tree8c3544e51745f14e072a32875412a7af41773384 /lib/libradius
parent3aebdb89adb23512b231f192471ced462a35aaa9 (diff)
downloadsrc-c5384974d99d960de4e92f8a2cc1e3ad10aa6248.tar.gz
src-c5384974d99d960de4e92f8a2cc1e3ad10aa6248.zip
Use correct u_int and socklen_t types for parameters if function is
expecting them, not int.
Notes
Notes: svn path=/head/; revision=168341
Diffstat (limited to 'lib/libradius')
-rw-r--r--lib/libradius/radlib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libradius/radlib.c b/lib/libradius/radlib.c
index 6060885f0ad3..b21447ef9c41 100644
--- a/lib/libradius/radlib.c
+++ b/lib/libradius/radlib.c
@@ -182,7 +182,8 @@ is_valid_response(struct rad_handle *h, int srv,
#ifdef WITH_SSL
HMAC_CTX hctx;
u_char resp[MSGSIZE], md[EVP_MAX_MD_SIZE];
- int pos, md_len;
+ u_int md_len;
+ int pos;
#endif
srvp = &h->servers[srv];
@@ -524,7 +525,7 @@ rad_continue_send_request(struct rad_handle *h, int selected, int *fd,
if (selected) {
struct sockaddr_in from;
- int fromlen;
+ socklen_t fromlen;
fromlen = sizeof from;
h->resp_len = recvfrom(h->fd, h->response,