debugprints of ips now using anonymous variables

FossilOrigin-Name: c19b60d28cd0cfd18ae703b479f560289f34d1054efc9baf6b03e4fae6887df5
This commit is contained in:
7u83@mail.ru 2014-07-19 15:17:27 +00:00
parent f0841170be
commit 9234e99b8c
1 changed files with 2 additions and 2 deletions

View File

@ -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){