#include <common/compat.h>
#include <common/config.h>
+#include <common/net_helper.h>
#include <common/time.h>
#include <common/standard.h>
#include <common/hathreads.h>
cursor += stlen;
}
else if (st->table->type == SMP_T_SINT) {
- netinteger = htonl(*((uint32_t *)ts->key.key));
+ netinteger = htonl(read_u32(ts->key.key));
memcpy(cursor, &netinteger, sizeof(netinteger));
cursor += sizeof(netinteger);
}
#include <common/initcall.h>
#include <common/memory.h>
#include <common/mini-clist.h>
+#include <common/net_helper.h>
#include <common/standard.h>
#include <common/time.h>
chunk_appendf(msg, " key=%s", addr);
}
else if (t->type == SMP_T_SINT) {
- chunk_appendf(msg, " key=%u", *(unsigned int *)entry->key.key);
+ chunk_appendf(msg, " key=%u", read_u32(entry->key.key));
}
else if (t->type == SMP_T_STR) {
chunk_appendf(msg, " key=");