summaryrefslogtreecommitdiffstats
path: root/src/varlinkctl
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-09-18 18:34:19 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-09-18 18:34:57 +0200
commit26d35019deb69069011b60b28527d93cec4c2218 (patch)
tree190aee421e919ca0983a7409a5bd6b85a939cec5 /src/varlinkctl
parentnsresource: make sd_json_dispatch_field table static (diff)
downloadsystemd-26d35019deb69069011b60b28527d93cec4c2218.tar.xz
systemd-26d35019deb69069011b60b28527d93cec4c2218.zip
tree-wide: drop unnecessary 'struct'
Diffstat (limited to 'src/varlinkctl')
-rw-r--r--src/varlinkctl/varlinkctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/varlinkctl/varlinkctl.c b/src/varlinkctl/varlinkctl.c
index 662a6add4b..0474ab245e 100644
--- a/src/varlinkctl/varlinkctl.c
+++ b/src/varlinkctl/varlinkctl.c
@@ -288,7 +288,7 @@ static int verb_info(int argc, char *argv[], void *userdata) {
pager_open(arg_pager_flags);
if (FLAGS_SET(arg_json_format_flags, SD_JSON_FORMAT_OFF)) {
- static const struct sd_json_dispatch_field dispatch_table[] = {
+ static const sd_json_dispatch_field dispatch_table[] = {
{ "vendor", SD_JSON_VARIANT_STRING, sd_json_dispatch_const_string, offsetof(GetInfoData, vendor), SD_JSON_MANDATORY },
{ "product", SD_JSON_VARIANT_STRING, sd_json_dispatch_const_string, offsetof(GetInfoData, product), SD_JSON_MANDATORY },
{ "version", SD_JSON_VARIANT_STRING, sd_json_dispatch_const_string, offsetof(GetInfoData, version), SD_JSON_MANDATORY },
@@ -412,7 +412,7 @@ static int verb_introspect(int argc, char *argv[], void *userdata) {
return r;
if (FLAGS_SET(arg_json_format_flags, SD_JSON_FORMAT_OFF) || list_methods) {
- static const struct sd_json_dispatch_field dispatch_table[] = {
+ static const sd_json_dispatch_field dispatch_table[] = {
{ "description", SD_JSON_VARIANT_STRING, sd_json_dispatch_const_string, 0, SD_JSON_MANDATORY },
{}
};