--- libaitmqtt/src/conn.c 2012/06/20 09:17:28 1.1.1.1.2.5 +++ libaitmqtt/src/conn.c 2012/06/20 11:11:30 1.1.1.1.2.6 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: conn.c,v 1.1.1.1.2.5 2012/06/20 09:17:28 misho Exp $ +* $Id: conn.c,v 1.1.1.1.2.6 2012/06/20 11:11:30 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -67,7 +67,8 @@ mqtt_msgCONNECT(mqtt_msg_t * __restrict buf, const cha const char *csWillTopic, const char *csWillMessage, u_char ClrSess, u_char WillQOS, u_char WillRetain) { - int n, len, siz = 0; + int len, siz = 0; + u_int n; struct mqtthdr *hdr; mqtthdr_var_t *var, *cid, *topic, *wmsg, *user, *pass; mqtthdr_protover_t *proto; @@ -120,7 +121,6 @@ mqtt_msgCONNECT(mqtt_msg_t * __restrict buf, const cha } /* fixed header */ - printf("%p - %p\n", hdr, data); MQTTHDR_MSGINIT(hdr); hdr->mqtt_msg.type = MQTT_TYPE_CONNECT; *(u_int*) hdr->mqtt_len = n;