]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: use C99 initialization syntax for single-variable 'for' loops
authorCollin Funk <collin.funk1@gmail.com>
Mon, 17 Nov 2025 04:23:30 +0000 (20:23 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Tue, 18 Nov 2025 03:10:40 +0000 (19:10 -0800)
commitbe22a577933302b25a6edbae6d834d52d478e753
tree4877627c22a5aeac9af37aa1e59eb8f29bbe4677
parent386cc5e4a75c71e0d27e44a453e47d27486af0f4
maint: use C99 initialization syntax for single-variable 'for' loops

* src/chroot.c (parse_additional_groups): Declare variable in the 'for'
clause.
* src/comm.c (compare_files): Likewise.
* src/cp.c (re_protect): Likewise.
* src/csplit.c (save_buffer, find_line, write_to_file)
(split_file, main): Likewise.
* src/dd.c (apply_translations, translate_buffer)
(copy_with_block, main): Likewise.
* src/df.c (selected_fstype, excluded_fstype, filter_mount_list)
(last_device_for_mount, get_device, get_point, get_all_entries)
(main): Likewise.
* src/fmt.c (copy_rest, get_prefix, fmt_paragraph, put_paragraph)
(put_word): Likewise.
* src/fold.c (main): Likewise.
* src/head.c (elide_tail_bytes_pipe, main): Likewise.
* src/install.c (main): Likewise.
* src/join.c (prfields, join, main): Likewise.
* src/kill.c (list_signals): Likewise.
* src/ls.c (main, decode_switches, parse_ls_color, patterns_match):
Likewise.
* src/operand2sig.c (operand2sig): Likewise.
* src/pathchk.c (no_leading_hyphen, validate_file_name): Likewise.
* src/pr.c (char_to_clump): Likewise.
* src/printenv.c (main): Likewise.
* src/ptx.c (initialize_regex, digest_break_file)
(find_occurs_in_text, print_field): Likewise.
* src/remove.c (mark_ancestor_dirs): Likewise.
* src/seq.c (print_numbers): Likewise.
* src/shred.c (do_wipefd, main): Likewise.
* src/sort.c (cleanup, inittables, key_warnings, mergefps)
(check_ordering_compatibility, main): Likewise.
* src/split.c (closeout): Likewise.
* src/stat.c (find_bind_mount, print_it, format_to_mask): Likewise.
* src/stdbuf.c (set_program_path): Likewise.
* src/stty.c (apply_settings, display_changed, display_all)
(recover_mode, sane_mode): Likewise.
* src/system.h (stzncpy): Likewise.
* src/tail.c (pipe_lines): Likewise.
* src/tee.c (tee_files): Likewise.
* src/tr.c (look_up_char_class, get_spec_stats): Likewise.
* src/users.c (list_entries_users): Likewise.
31 files changed:
src/chroot.c
src/comm.c
src/cp.c
src/csplit.c
src/dd.c
src/df.c
src/fmt.c
src/fold.c
src/head.c
src/install.c
src/join.c
src/kill.c
src/ls.c
src/operand2sig.c
src/pathchk.c
src/pr.c
src/printenv.c
src/ptx.c
src/remove.c
src/seq.c
src/shred.c
src/sort.c
src/split.c
src/stat.c
src/stdbuf.c
src/stty.c
src/system.h
src/tail.c
src/tee.c
src/tr.c
src/users.c