This argument is unused, and the function itself is not used outside of src/stat.c.
* src/stat.c: drop statbuf argument from out_epoch_sec() --- src/stat.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/stat.c b/src/stat.c index bb1ef1a3d9ec..a0f32b32b958 100644 --- a/src/stat.c +++ b/src/stat.c @@ -676,7 +676,6 @@ out_minus_zero (char *pformat, size_t prefix_len) acts like printf's %f format. */ static void out_epoch_sec (char *pformat, size_t prefix_len, - struct stat const *statbuf _GL_UNUSED, struct timespec arg) { char *dot = memchr (pformat, '.', prefix_len); @@ -1169,26 +1168,26 @@ print_stat (char *pformat, size_t prefix_len, unsigned int m, } break; case 'W': - out_epoch_sec (pformat, prefix_len, statbuf, + out_epoch_sec (pformat, prefix_len, neg_to_zero (get_birthtime (fd, filename, statbuf))); break; case 'x': out_string (pformat, prefix_len, human_time (get_stat_atime (statbuf))); break; case 'X': - out_epoch_sec (pformat, prefix_len, statbuf, get_stat_atime (statbuf)); + out_epoch_sec (pformat, prefix_len, get_stat_atime (statbuf)); break; case 'y': out_string (pformat, prefix_len, human_time (get_stat_mtime (statbuf))); break; case 'Y': - out_epoch_sec (pformat, prefix_len, statbuf, get_stat_mtime (statbuf)); + out_epoch_sec (pformat, prefix_len, get_stat_mtime (statbuf)); break; case 'z': out_string (pformat, prefix_len, human_time (get_stat_ctime (statbuf))); break; case 'Z': - out_epoch_sec (pformat, prefix_len, statbuf, get_stat_ctime (statbuf)); + out_epoch_sec (pformat, prefix_len, get_stat_ctime (statbuf)); break; case 'C': fail |= out_file_context (pformat, prefix_len, filename); -- 2.21.0