aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius/radius_das.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-11-02 10:51:30 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-02 10:58:33 (GMT)
commit61323e70e1ffb406a368c7be88c8b9d10a63a2a6 (patch)
tree3c60d3528fe3094888eb2101b48dd8fc58a76261 /src/radius/radius_das.c
parent8f47f31dd879338f63f4b9e8fc9945401daefa25 (diff)
downloadhostap-61323e70e1ffb406a368c7be88c8b9d10a63a2a6.zip
hostap-61323e70e1ffb406a368c7be88c8b9d10a63a2a6.tar.gz
hostap-61323e70e1ffb406a368c7be88c8b9d10a63a2a6.tar.bz2
Convert perror/printf calls to wpa_printf
This makes debug and error logging more consistent and allows them to be directed to a file more easily. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/radius/radius_das.c')
-rw-r--r--src/radius/radius_das.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/radius/radius_das.c b/src/radius/radius_das.c
index bded965..8e5988d 100644
--- a/src/radius/radius_das.c
+++ b/src/radius/radius_das.c
@@ -1,6 +1,6 @@
/*
* RADIUS Dynamic Authorization Server (DAS) (RFC 5176)
- * Copyright (c) 2012, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2012-2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
@@ -284,7 +284,7 @@ static int radius_das_open_socket(int port)
s = socket(PF_INET, SOCK_DGRAM, 0);
if (s < 0) {
- perror("socket");
+ wpa_printf(MSG_INFO, "RADIUS DAS: socket: %s", strerror(errno));
return -1;
}
@@ -292,7 +292,7 @@ static int radius_das_open_socket(int port)
addr.sin_family = AF_INET;
addr.sin_port = htons(port);
if (bind(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
- perror("bind");
+ wpa_printf(MSG_INFO, "RADIUS DAS: bind: %s", strerror(errno));
close(s);
return -1;
}