]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: reindent arguments of conf parsers 37900/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 21 Jun 2025 04:16:46 +0000 (13:16 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 23 Jun 2025 15:20:20 +0000 (00:20 +0900)
Also fixes 'const char* unit' -> 'const char *unit'.

src/core/load-fragment.c
src/journal/journald-manager.c
src/login/logind-user.c
src/network/netdev/tunnel.c
src/network/networkd-can.c
src/network/networkd-dhcp-common.c
src/network/networkd-dhcp6.c
src/network/networkd-ipv4ll.c
src/network/networkd-sysctl.c

index fd78e4374fdec797fd282d0df48463ecc8425ffa..28bd91fa1fc5e7f5d9a31f979a299234de47163c 100644 (file)
@@ -737,7 +737,7 @@ int config_parse_exec_nice(
 }
 
 int config_parse_exec_oom_score_adjust(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -776,7 +776,7 @@ int config_parse_exec_oom_score_adjust(
 }
 
 int config_parse_exec_coredump_filter(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -814,7 +814,7 @@ int config_parse_exec_coredump_filter(
 }
 
 int config_parse_kill_mode(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -1071,7 +1071,7 @@ int config_parse_exec(
 }
 
 int config_parse_socket_bindtodevice(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -1428,16 +1428,17 @@ int config_parse_exec_output(
         return 0;
 }
 
-int config_parse_exec_io_class(const char *unit,
-                               const char *filename,
-                               unsigned line,
-                               const char *section,
-                               unsigned section_line,
-                               const char *lvalue,
-                               int ltype,
-                               const char *rvalue,
-                               void *data,
-                               void *userdata) {
+int config_parse_exec_io_class(
+                const char *unit,
+                const char *filename,
+                unsigned line,
+                const char *section,
+                unsigned section_line,
+                const char *lvalue,
+                int ltype,
+                const char *rvalue,
+                void *data,
+                void *userdata) {
 
         ExecContext *c = ASSERT_PTR(data);
         int x;
@@ -1464,16 +1465,17 @@ int config_parse_exec_io_class(const char *unit,
         return 0;
 }
 
-int config_parse_exec_io_priority(const char *unit,
-                                  const char *filename,
-                                  unsigned line,
-                                  const char *section,
-                                  unsigned section_line,
-                                  const char *lvalue,
-                                  int ltype,
-                                  const char *rvalue,
-                                  void *data,
-                                  void *userdata) {
+int config_parse_exec_io_priority(
+                const char *unit,
+                const char *filename,
+                unsigned line,
+                const char *section,
+                unsigned section_line,
+                const char *lvalue,
+                int ltype,
+                const char *rvalue,
+                void *data,
+                void *userdata) {
 
         ExecContext *c = ASSERT_PTR(data);
         int i, r;
@@ -1500,16 +1502,17 @@ int config_parse_exec_io_priority(const char *unit,
         return 0;
 }
 
-int config_parse_exec_cpu_sched_policy(const char *unit,
-                                       const char *filename,
-                                       unsigned line,
-                                       const char *section,
-                                       unsigned section_line,
-                                       const char *lvalue,
-                                       int ltype,
-                                       const char *rvalue,
-                                       void *data,
-                                       void *userdata) {
+int config_parse_exec_cpu_sched_policy(
+                const char *unit,
+                const char *filename,
+                unsigned line,
+                const char *section,
+                unsigned section_line,
+                const char *lvalue,
+                int ltype,
+                const char *rvalue,
+                void *data,
+                void *userdata) {
 
         ExecContext *c = ASSERT_PTR(data);
         int x;
@@ -1577,16 +1580,17 @@ int config_parse_numa_mask(
                 config_parse_cpu_set(unit, filename, line, section, section_line, lvalue, ltype, rvalue, data, userdata);
 }
 
-int config_parse_exec_cpu_sched_prio(const char *unit,
-                                     const char *filename,
-                                     unsigned line,
-                                     const char *section,
-                                     unsigned section_line,
-                                     const char *lvalue,
-                                     int ltype,
-                                     const char *rvalue,
-                                     void *data,
-                                     void *userdata) {
+int config_parse_exec_cpu_sched_prio(
+                const char *unit,
+                const char *filename,
+                unsigned line,
+                const char *section,
+                unsigned section_line,
+                const char *lvalue,
+                int ltype,
+                const char *rvalue,
+                void *data,
+                void *userdata) {
 
         ExecContext *c = ASSERT_PTR(data);
         int i, r;
@@ -2162,16 +2166,17 @@ int config_parse_trigger_unit(
         return 0;
 }
 
-int config_parse_path_spec(const char *unit,
-                           const char *filename,
-                           unsigned line,
-                           const char *section,
-                           unsigned section_line,
-                           const char *lvalue,
-                           int ltype,
-                           const char *rvalue,
-                           void *data,
-                           void *userdata) {
+int config_parse_path_spec(
+                const char *unit,
+                const char *filename,
+                unsigned line,
+                const char *section,
+                unsigned section_line,
+                const char *lvalue,
+                int ltype,
+                const char *rvalue,
+                void *data,
+                void *userdata) {
 
         Path *p = ASSERT_PTR(data);
         PathSpec *s;
@@ -2651,16 +2656,17 @@ int config_parse_working_directory(
         return 0;
 }
 
-int config_parse_unit_env_file(const char *unit,
-                               const char *filename,
-                               unsigned line,
-                               const char *section,
-                               unsigned section_line,
-                               const char *lvalue,
-                               int ltype,
-                               const char *rvalue,
-                               void *data,
-                               void *userdata) {
+int config_parse_unit_env_file(
+                const char *unit,
+                const char *filename,
+                unsigned line,
+                const char *section,
+                unsigned section_line,
+                const char *lvalue,
+                int ltype,
+                const char *rvalue,
+                void *data,
+                void *userdata) {
 
         char ***env = ASSERT_PTR(data);
         const Unit *u = userdata;
@@ -5449,7 +5455,7 @@ int config_parse_extension_images(
 }
 
 int config_parse_job_timeout_sec(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -5487,7 +5493,7 @@ int config_parse_job_timeout_sec(
 }
 
 int config_parse_job_running_timeout_sec(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -5519,7 +5525,7 @@ int config_parse_job_running_timeout_sec(
 }
 
 int config_parse_emergency_action(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -6264,7 +6270,7 @@ void unit_dump_config_items(FILE *f) {
 }
 
 int config_parse_show_status(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -6290,7 +6296,7 @@ int config_parse_show_status(
 }
 
 int config_parse_output_restricted(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -6337,7 +6343,7 @@ int config_parse_output_restricted(
 }
 
 int config_parse_crash_chvt(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
index f6159fb2b66d120eee6219033ecb65742d765676..3443e6a965c24c0e0c19e6cea0169b9096e67559 100644 (file)
@@ -2814,7 +2814,7 @@ DEFINE_STRING_TABLE_LOOKUP(split_mode, SplitMode);
 DEFINE_CONFIG_PARSE_ENUM(config_parse_split_mode, split_mode, SplitMode);
 
 int config_parse_line_max(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -2865,7 +2865,7 @@ int config_parse_line_max(
 }
 
 int config_parse_compress(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -2910,7 +2910,7 @@ int config_parse_compress(
 }
 
 int config_parse_forward_to_socket(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
index 5c423c21dd6fc6857e210514916c51c23a6a3513..49d51952e98e7e07df9ef56e4a34a7cf727ea896 100644 (file)
@@ -978,7 +978,7 @@ static const char* const user_gc_mode_table[_USER_GC_MODE_MAX] = {
 DEFINE_STRING_TABLE_LOOKUP(user_gc_mode, UserGCMode);
 
 int config_parse_tmpfs_size(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
index 29f353d84904f18ffc32e02668351f69bf8c5932..5c795337a2f841076681d851f8ee6cf1603cf8a6 100644 (file)
@@ -904,7 +904,7 @@ int config_parse_tunnel_key(
 }
 
 int config_parse_ipv6_flowlabel(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -941,7 +941,7 @@ int config_parse_ipv6_flowlabel(
 }
 
 int config_parse_encap_limit(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -976,7 +976,7 @@ int config_parse_encap_limit(
 }
 
 int config_parse_6rd_prefix(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -1013,7 +1013,7 @@ int config_parse_6rd_prefix(
 }
 
 int config_parse_erspan_version(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -1042,7 +1042,7 @@ int config_parse_erspan_version(
 }
 
 int config_parse_erspan_index(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -1071,7 +1071,7 @@ int config_parse_erspan_index(
 }
 
 int config_parse_erspan_direction(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -1100,7 +1100,7 @@ int config_parse_erspan_direction(
 }
 
 int config_parse_erspan_hwid(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
index 96f503ca3a04d3c024a214e9cbc87e0f6441df5d..2f58c49798d7b4f596f48bbb9715d698add092bd 100644 (file)
@@ -132,7 +132,7 @@ int can_set_netlink_message(Link *link, sd_netlink_message *m) {
 }
 
 int config_parse_can_bitrate(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -171,7 +171,7 @@ int config_parse_can_bitrate(
 }
 
 int config_parse_can_time_quanta(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -208,7 +208,7 @@ int config_parse_can_time_quanta(
 }
 
 int config_parse_can_restart_usec(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -245,7 +245,7 @@ int config_parse_can_restart_usec(
 }
 
 int config_parse_can_control_mode(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -284,7 +284,7 @@ int config_parse_can_control_mode(
 }
 
 int config_parse_can_termination(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
index 74555cf78fa2b95b0a769e9685dd2257f4db3c0e..2d8ee46ad9b7aebfe8ae81cf5f8b2920c7941d42 100644 (file)
@@ -338,7 +338,7 @@ int link_get_captive_portal(Link *link, const char **ret) {
 }
 
 int config_parse_dhcp(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -383,7 +383,7 @@ int config_parse_dhcp(
 }
 
 int config_parse_dhcp_route_metric(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -492,7 +492,7 @@ int config_parse_ndisc_route_metric(
 }
 
 int config_parse_dhcp_send_hostname(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
index 4806980993a4e924ebe42f4c9c131af9b422b7e7..89637fc1e726b8c7cb9064823e88d55a6fdaac80 100644 (file)
@@ -894,7 +894,7 @@ int link_serialize_dhcp6_client(Link *link, FILE *f) {
 }
 
 int config_parse_dhcp6_pd_prefix_hint(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
index ff8a17211e415e8e043ad59a130ba88e42420932..94fa25a4f07408c8aa3bf4f0e3769405912d9844 100644 (file)
@@ -346,7 +346,7 @@ int ipv4ll_update_mac(Link *link) {
 }
 
 int config_parse_ipv4ll(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
@@ -387,7 +387,7 @@ int config_parse_ipv4ll(
 }
 
 int config_parse_ipv4ll_address(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,
index b37f24c5bc1a44357eb76367b70c192816a7c83c..efb9f45df9a8440142a8af2b1ad575c5ebd4f2f0 100644 (file)
@@ -783,7 +783,7 @@ DEFINE_STRING_TABLE_LOOKUP(ip_reverse_path_filter, IPReversePathFilter);
 DEFINE_CONFIG_PARSE_ENUM(config_parse_ip_reverse_path_filter, ip_reverse_path_filter, IPReversePathFilter);
 
 int config_parse_ip_forward_deprecated(
-                const charunit,
+                const char *unit,
                 const char *filename,
                 unsigned line,
                 const char *section,