From c698fd7211a71cd3e9b73f4525d20b780556a010 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Tue, 16 Nov 2021 01:28:34 -0500 Subject: [PATCH] context: stop using deprecated memset_zero template Use ordinary literal initialization instead. The ioctl doesn't need initialization of args at all. Signed-off-by: Zygo Blaxell --- src/bees-context.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bees-context.cc b/src/bees-context.cc index 195afe8..6dd0850 100644 --- a/src/bees-context.cc +++ b/src/bees-context.cc @@ -807,8 +807,7 @@ BeesContext::wait_for_balance() Timer balance_timer; BEESNOTE("WORKAROUND: waiting for balance to stop"); while (true) { - btrfs_ioctl_balance_args args; - memset_zero(&args); + btrfs_ioctl_balance_args args {}; const int ret = ioctl(root_fd(), BTRFS_IOC_BALANCE_PROGRESS, &args); if (ret < 0) { // Either can't get balance status or not running, exit either way