rizinorg / rz-silhouette

Rizin client plugin for the Rizin Silhouette Server
8 stars 2 forks source link

Fix designator initialization #3

Closed XVilka closed 1 year ago

XVilka commented 1 year ago

Fixes following warnings:

../src/sil_plugin.c:51:3: warning: use of GNU old-style field designator extension [-Wgnu-designator]
                psk : rz_config_get(core->config, RZ_SIL_PSK),
                ^~~~~
                .psk =
../src/sil_plugin.c:52:3: warning: use of GNU old-style field designator extension [-Wgnu-designator]
                address : rz_config_get(core->config, RZ_SIL_HOST),
                ^~~~~~~~~
                .address =
../src/sil_plugin.c:53:3: warning: use of GNU old-style field designator extension [-Wgnu-designator]
                port : rz_config_get(core->config, RZ_SIL_PORT),
                ^~~~~~
                .port =
../src/sil_plugin.c:54:3: warning: use of GNU old-style field designator extension [-Wgnu-designator]
                timeout : rz_config_get_i(core->config, RZ_SIL_TIMEOUT),
                ^~~~~~~~~
                .timeout =
../src/sil_plugin.c:58:3: warning: use of GNU old-style field designator extension [-Wgnu-designator]
                use_tls : false,
                ^~~~~~~~~
                .use_tls =
../src/sil_plugin.c:60:3: warning: use of GNU old-style field designator extension [-Wgnu-designator]
                show_msg : rz_config_get_b(core->config, RZ_SIL_SRV_TEXT),
                ^~~~~~~~~~
                .show_msg =
../src/sil_plugin.c:61:3: warning: use of GNU old-style field designator extension [-Wgnu-designator]
                can_share : rz_config_get_b(core->config, RZ_SIL_SHARE),
                ^~~~~~~~~~~
                .can_share =
../src/sil_plugin.c:62:3: warning: use of GNU old-style field designator extension [-Wgnu-designator]
                can_share_sections : rz_config_get_b(core->config, RZ_SIL_SHARE_SECTIONS),
                ^~~~~~~~~~~~~~~~~~~~
                .can_share_sections =
../src/sil_plugin.c:63:3: warning: use of GNU old-style field designator extension [-Wgnu-designator]
                can_share_symbols : rz_config_get_b(core->config, RZ_SIL_SHARE_SYMBOLS),
                ^~~~~~~~~~~~~~~~~~~
                .can_share_symbols =