rem: int bar;
context: static unsigned char *packet_serialize(OpnPacket *packet, long *ssize){	uint16_t foo;	int bar;		if (!packet)		return NULL;	free(packet->serialized);		/* payload of the message + type and size fields */	if (!(packet->serialized = malloc(packet->data_size + OPN_PACKET_HEADER_LEN)))		return NULL;	/* size and type are always in little-endian format */	foo = BSWAP16(packet->data_size);	memcpy(packet->serialized, &foo, 2);	foo = BSWAP16(packet->cmd);	memcpy(&packet->serialized[2], &foo, 2);	if (packet->data_size)		memcpy(&packet->serialized[OPN_PACKET_HEADER_LEN], packet->data, packet->data_size);		if (ssize)		*ssize = OPN_PACKET_HEADER_LEN + packet->data_size;		return packet->serialized;}