Compiles w/o warnings with gcc

FossilOrigin-Name: 8aeb5208592d4c31a07b3eba10aa247483f9648fbaba38eb844cb02e074f31b9
This commit is contained in:
7u83@mail.ru
2018-03-25 08:35:53 +00:00
parent 847781bf7c
commit f136a0f401
16 changed files with 60 additions and 55 deletions

View File

@ -244,7 +244,7 @@ void cw_dbg_pkt(int level, struct conn *conn, uint8_t * packet, int len,
struct sockaddr *from)
{
int hlen;
/* int hlen;*/
char buf[1024];
if (!cw_dbg_is_level(level))
@ -255,7 +255,7 @@ void cw_dbg_pkt(int level, struct conn *conn, uint8_t * packet, int len,
else
cw_format_pkt_hdr(buf, 0, packet, len, from);
hlen = cw_get_hdr_msg_offset(packet);
/* hlen = cw_get_hdr_msg_offset(packet);*/
cw_dbg(level, "%s", buf);
@ -483,7 +483,7 @@ void cw_dbg_elem(int level, struct conn *conn, int msg,
sprintf(vendorname,"Vendor %s",cw_strvendor(handler->vendor));
}
else{
sprintf(vendorname,"");
sprintf(vendorname,"%s","");
}