aboutgitcodelistschat:MatrixIRC
path: root/cooker/emit.c
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-06-05 16:54:12 +0200
committerAlice Frosi <afrosi@redhat.com>2023-06-05 16:54:12 +0200
commit3b9f21c6c3f06fd5049aa43f116906417d92e11f (patch)
treec56d8857408efb99c13f4af458b14d88fd078a40 /cooker/emit.c
parentcbf5a607bcd638a1fc8c5b212e1d360528a55b19 (diff)
downloadseitan-3b9f21c6c3f06fd5049aa43f116906417d92e11f.tar
seitan-3b9f21c6c3f06fd5049aa43f116906417d92e11f.tar.gz
seitan-3b9f21c6c3f06fd5049aa43f116906417d92e11f.tar.bz2
seitan-3b9f21c6c3f06fd5049aa43f116906417d92e11f.tar.lz
seitan-3b9f21c6c3f06fd5049aa43f116906417d92e11f.tar.xz
seitan-3b9f21c6c3f06fd5049aa43f116906417d92e11f.tar.zst
seitan-3b9f21c6c3f06fd5049aa43f116906417d92e11f.zip
cooker: use unsigned short for family with connect
Diffstat (limited to 'cooker/emit.c')
-rw-r--r--cooker/emit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cooker/emit.c b/cooker/emit.c
index 4303115..4be5d35 100644
--- a/cooker/emit.c
+++ b/cooker/emit.c
@@ -16,7 +16,7 @@
static const char *type_str[] = {
"UNDEF", "NONE",
- "INT", "U32", "U64", "LONG",
+ "USHORT", "INT", "U32", "U64", "LONG",
"STRING",
"STRUCT", "SELECT",
"PID",
@@ -331,6 +331,7 @@ static struct gluten_offset emit_data_do(struct gluten_ctx *g,
}
switch (type) {
+ case USHORT:
case INT:
if (add) {
*(int *)p |= value->v_int;