From e5a1983e4384a44e45486fb9a48bdba375a529b6 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 6 Jun 2023 11:56:21 +0200 Subject: cooker: Draft quality: mknod/mknodat, sets of values with "in" While at it: - directly assign 'fd' in eater from install_filter() - turn op_cmp into a description-style thing Signed-off-by: Stefano Brivio --- cooker/call.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cooker/call.c') diff --git a/cooker/call.c b/cooker/call.c index 1c29db8..289a0cb 100644 --- a/cooker/call.c +++ b/cooker/call.c @@ -143,6 +143,8 @@ static union value parse_field(struct gluten_ctx *g, struct arg *args, case INT: case LONG: case U32: + case GNU_DEV_MAJOR: + case GNU_DEV_MINOR: if (f->flags == SIZE) { v.v_num = value_get_size(g, f->desc.d_size); } else if (f->flags == FLAGS) { @@ -250,6 +252,8 @@ bool arg_needs_temp(struct field *f, int pos, JSON_Value *jvalue, case INT: case LONG: case U32: + case GNU_DEV_MAJOR: + case GNU_DEV_MINOR: return false; case SELECT: f_inner = f->desc.d_select->field; -- cgit v1.2.3