]> git.ipfire.org Git - thirdparty/coreutils.git/commit
shuf: prefer xpalloc to xnrealloc
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Nov 2024 08:01:01 +0000 (00:01 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Nov 2024 07:41:18 +0000 (23:41 -0800)
commitcd340ab21f6ed12506d8c5d85a6b2a7cf4a3c310
treee752f64406e9657fef9c2fd5a4b52b74c2c697b2
parent61ab25c3551ef90abfbf840e174833b0d504b29f
shuf: prefer xpalloc to xnrealloc

* src/shuf.c (RESERVOIR_LINES_INCREMENT): Remove.
All uses removed.
(read_input_reservoir_sampling, main):
Prefer idx_t to size_t for sizes related to xpalloc.
(read_input_reservoir_sampling): Prefer xpalloc to xnrealloc.
src/shuf.c