diff options
author | Alexey Neyman <aneyman@google.com> | 2023-10-05 18:43:17 +0000 |
---|---|---|
committer | Alexey Neyman <aneyman@google.com> | 2023-10-05 18:45:43 +0000 |
commit | 4b3d7ff7216dfdb1708cc8ad1b267186440eac11 (patch) | |
tree | 2ca4a8c8fd4a523c66a97e0fe763a442eebcd934 | |
parent | 6f9cdcfcc7598c7d7b19c4a5120a251a80dab183 (diff) | |
download | fio-4b3d7ff7216dfdb1708cc8ad1b267186440eac11.tar.gz |
Change memcpy() calls to assignments
This is to avoid triggering a spurious warning caused by [1], which
is triggered by the next commit in chain (unrelated change in
update_io_tick_disk()).
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111696
Signed-off-by: Alexey Neyman <aneyman@google.com>
-rw-r--r-- | diskutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/diskutil.c b/diskutil.c index cf4ede857..40f2c2603 100644 --- a/diskutil.c +++ b/diskutil.c @@ -103,8 +103,8 @@ static void update_io_tick_disk(struct disk_util *du) fio_gettime(&t, NULL); dus->s.msec += mtime_since(&du->time, &t); - memcpy(&du->time, &t, sizeof(t)); - memcpy(&ldus->s, &__dus.s, sizeof(__dus.s)); + du->time = t; + ldus->s = __dus.s; } int update_io_ticks(void) |