]> git.ipfire.org Git - thirdparty/coreutils.git/commit
od: simpler static initialization
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 28 Jun 2025 16:49:42 +0000 (09:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Jun 2025 04:00:41 +0000 (21:00 -0700)
commit34b5043c6e78fba2167cc18b2ec2a14158fd809a
tree94d530ed7c5770402fcc50b50e8402a8ee349654
parent0e104647a7bf727f273228c2a3292699c8f17f67
od: simpler static initialization

* src/od.c (address_base, address_pad_len, format_address):
Initialize statically rather than dynamically.
(limit_bytes_to_format): Remove.  All uses replaced by
checking sign of end_offset.
(max_bytes_to_format): Remove static var.  Now local to ‘main’.
(end_offset): -1 now means no limit.  All uses changed.
src/od.c