Author: tjansen Date: Fri Oct 30 11:50:55 2009 New Revision: 1446 Log: Fix -Wshadow warning: libpisa/pisaconf.c: In function ‘pisa_conf_packet_add_len’: libpisa/pisaconf.c:171: warning: declaration of ‘__v’ shadows a previous local libpisa/pisaconf.c:171: warning: shadowed declaration is here libpisa/pisaconf.c:171: warning: declaration of ‘__x’ shadows a previous local libpisa/pisaconf.c:171: warning: shadowed declaration is here Modified: trunk/libpisa/pisaconf.c Modified: trunk/libpisa/pisaconf.c ============================================================================== --- trunk/libpisa/pisaconf.c Fri Oct 30 11:47:50 2009 (r1445) +++ trunk/libpisa/pisaconf.c Fri Oct 30 11:50:55 2009 (r1446) @@ -168,7 +168,8 @@ */ void pisa_conf_packet_add_len(pisa_conf_packet *packet, int len) { - packet->header.len = htons(len + ntohs(packet->header.len)); + uint16_t tmp = ntohs(packet->header.len); + packet->header.len = htons(len + tmp); } /**