summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-09-18 18:05:24 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-09-18 18:34:56 +0200
commit07dbbda0fc7f340589b74334cf69526e0352c01b (patch)
tree27b0ca328f76f8c3238fd80073dc4c07991a3ea9
parentmachine: make sd_json_dispatch_field table static (diff)
downloadsystemd-07dbbda0fc7f340589b74334cf69526e0352c01b.tar.xz
systemd-07dbbda0fc7f340589b74334cf69526e0352c01b.zip
ssh-generator: make sd_json_dispatch_field table static
-rw-r--r--src/ssh-generator/ssh-proxy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ssh-generator/ssh-proxy.c b/src/ssh-generator/ssh-proxy.c
index 67bdb056ef..0085e2a087 100644
--- a/src/ssh-generator/ssh-proxy.c
+++ b/src/ssh-generator/ssh-proxy.c
@@ -161,12 +161,12 @@ static int process_machine(const char *machine, const char *port) {
uint32_t cid = VMADDR_CID_ANY;
- const sd_json_dispatch_field dispatch_table[] = {
- { "vSockCid", SD_JSON_VARIANT_UNSIGNED, sd_json_dispatch_uint32, PTR_TO_SIZE(&cid), 0 },
+ static const sd_json_dispatch_field dispatch_table[] = {
+ { "vSockCid", SD_JSON_VARIANT_UNSIGNED, sd_json_dispatch_uint32, 0, 0 },
{}
};
- r = sd_json_dispatch(result, dispatch_table, SD_JSON_ALLOW_EXTENSIONS, NULL);
+ r = sd_json_dispatch(result, dispatch_table, SD_JSON_ALLOW_EXTENSIONS, &cid);
if (r < 0)
return log_error_errno(r, "Failed to parse Varlink reply: %m");