debugprints of ips now using anonymous variables
FossilOrigin-Name: c19b60d28cd0cfd18ae703b479f560289f34d1054efc9baf6b03e4fae6887df5
This commit is contained in:
		@ -31,7 +31,7 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* macro to convert our client ip to a string */
 | 
			
		||||
#define CLIENT_IP (sock_addrtostr((struct sockaddr*)&wtpman->conn->addr, wtpman->tmpstr, sizeof(wtpman->tmpstr)))
 | 
			
		||||
#define CLIENT_IP (sock_addrtostr((struct sockaddr*)&wtpman->conn->addr, (char[64]){0},64))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -138,7 +138,7 @@ static void wtpman_run(void *arg)
 | 
			
		||||
	int result_code = 1;
 | 
			
		||||
	cwsend_join_response(wtpman->conn,cwrmsg->seqnum,result_code,&radioinfo,acinfo,&wtpman->wtpinfo);
 | 
			
		||||
 | 
			
		||||
	cw_log_debug0("WTP joined");
 | 
			
		||||
	cw_log_debug0("WTP joined %s,%s",wtpman->wtpinfo.name,wtpman->wtpinfo.location);
 | 
			
		||||
 | 
			
		||||
	int msg_counter = 0;
 | 
			
		||||
	while(1){
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user