From 972f8b7df81b0b9969b240ff7e6b5e0ac6670b8d Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Wed, 15 Oct 2025 23:23:16 +0100 Subject: [PATCH] Re-order no_splice and sparse_output relative to other flags to more closely match the order they appear in the manual. --- src/include/options.h | 2 +- src/include/pv-internal.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/options.h b/src/include/options.h index fefdfcf..f59f4b1 100644 --- a/src/include/options.h +++ b/src/include/options.h @@ -88,8 +88,8 @@ struct opts_s { bool no_splice; /* flag set if never to use splice */ bool stop_at_size; /* set if we stop at "size" bytes */ bool sync_after_write; /* set if we sync after every write */ - bool sparse_output; /* set if we leave holes in the output */ bool direct_io; /* set if O_DIRECT is to be used */ + bool sparse_output; /* set if we leave holes in the output */ bool discard_input; /* set to write nothing to output */ bool show_stats; /* set to write statistics at the end */ bool width_set_manually; /* width was set manually, not detected */ diff --git a/src/include/pv-internal.h b/src/include/pv-internal.h index 208e357..6ff5e4d 100644 --- a/src/include/pv-internal.h +++ b/src/include/pv-internal.h @@ -203,12 +203,12 @@ struct pvstate_s { bool decimal_units; /* use decimal prefixes */ bool null_terminated_lines; /* lines are null-terminated */ bool no_display; /* do nothing other than pipe data */ + bool no_splice; /* never use splice() */ bool stop_at_size; /* set if we stop at "size" bytes */ bool sync_after_write; /* set if we sync after every write */ - bool sparse_output; /* set if we leave holes in the output */ bool direct_io; /* set if O_DIRECT is to be used */ bool direct_io_changed; /* set when direct_io is changed */ - bool no_splice; /* never use splice() */ + bool sparse_output; /* set if we leave holes in the output */ bool discard_input; /* write nothing to stdout */ bool show_stats; /* show statistics on exit */ bool width_set_manually; /* width was set manually, not detected */