*/
#include "protocol.h"
-#include <arpa/inet.h>
/* serial protocol */
#define mso_trans(a, v) \
p += sizeof(mso_head);
for (i = 0; i < n; i++) {
- *(uint16_t *) p = htons(payload[i]);
+ *(uint16_t *) p = g_htons(payload[i]);
p += 2;
}
memcpy(p, mso_foot, sizeof(mso_foot));