re-indented.

FossilOrigin-Name: 0d4a8045fd4cf52e9d2017813e48b7c13f6d38e78ed863d9abaf20f4857f2da8
This commit is contained in:
7u83@mail.ru 2016-03-05 10:22:10 +00:00
parent 80a39b1549
commit e248f763ce

View File

@ -8,16 +8,18 @@
int configure() int configure()
{ {
struct conn * conn = get_conn(); struct conn *conn = get_conn();
int rc = cw_send_request(conn,CW_MSG_CONFIGURATION_STATUS_REQUEST); int rc = cw_send_request(conn, CW_MSG_CONFIGURATION_STATUS_REQUEST);
if (!cw_rcok(rc)) { if (!cw_rcok(rc)) {
if (rc > 0) { if (rc > 0) {
cw_log(LOG_ERR, "Error sending Configuration Status Request to AC at %s, AC said: %d - %s.", cw_log(LOG_ERR,
"Error sending Configuration Status Request to AC at %s, AC said: %d - %s.",
sock_addr2str(&conn->addr), rc, cw_strerror(rc)); sock_addr2str(&conn->addr), rc, cw_strerror(rc));
} else { } else {
cw_log(LOG_ERR, "Error sending Configuration Status Request to AC at %s: %d - %s.", cw_log(LOG_ERR,
"Error sending Configuration Status Request to AC at %s: %d - %s.",
sock_addr2str(&conn->addr), errno, cw_strerror(rc)); sock_addr2str(&conn->addr), errno, cw_strerror(rc));
} }
return 0; return 0;
@ -25,4 +27,3 @@ int configure()
return 1; return 1;
} }