re-indented.
FossilOrigin-Name: 0d4a8045fd4cf52e9d2017813e48b7c13f6d38e78ed863d9abaf20f4857f2da8
This commit is contained in:
		@ -8,16 +8,18 @@
 | 
			
		||||
int configure()
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
	struct conn * conn = get_conn();
 | 
			
		||||
	int rc = cw_send_request(conn,CW_MSG_CONFIGURATION_STATUS_REQUEST);
 | 
			
		||||
	struct conn *conn = get_conn();
 | 
			
		||||
	int rc = cw_send_request(conn, CW_MSG_CONFIGURATION_STATUS_REQUEST);
 | 
			
		||||
 | 
			
		||||
	if (!cw_rcok(rc)) {
 | 
			
		||||
		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));
 | 
			
		||||
 | 
			
		||||
		} 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));
 | 
			
		||||
		}
 | 
			
		||||
		return 0;
 | 
			
		||||
@ -25,4 +27,3 @@ int configure()
 | 
			
		||||
 | 
			
		||||
	return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user