diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2025-07-30 15:11:31 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2025-08-03 19:48:05 -0700 |
| commit | 382044766789d961fd8124dd7f8a0a06058da20a (patch) | |
| tree | c8cba37aea00bc9bfdabb6005df25305e40f2849 /scripts/git-hooks/commit-msg | |
| parent | tail: prefer intmax_t to uintmax_t (diff) | |
| download | coreutils-382044766789d961fd8124dd7f8a0a06058da20a.tar.gz coreutils-382044766789d961fd8124dd7f8a0a06058da20a.zip | |
tail: prefer signed types to size_t, blksize_t
* src/tail.c (struct File_spec, xwrite_stdout, file_lines)
(pipe_lines, pipe_bytes, start_bytes, any_live_files)
(tail_forever, any_remote_file, any_non_remote_file)
(any_symlinks, any_non_regular_fifo, tailable_stdin)
(tail_forever_inotify, ignore_fifo_and_pipe, main):
Prefer a signed type to size_t, if possible.
Ordinarily this is idx_t, but use int when the value
must fit in int anyway.
(file_lines): Similarly for blksize_t, which had no business
being here anyway.
(main): Check for overflow in the oddball case where ptrdiff_t is
narrower than int.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
