mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
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 <bees@furryterror.org>
This commit is contained in:
parent
95347a08bb
commit
c698fd7211
@ -807,8 +807,7 @@ BeesContext::wait_for_balance()
|
|||||||
Timer balance_timer;
|
Timer balance_timer;
|
||||||
BEESNOTE("WORKAROUND: waiting for balance to stop");
|
BEESNOTE("WORKAROUND: waiting for balance to stop");
|
||||||
while (true) {
|
while (true) {
|
||||||
btrfs_ioctl_balance_args args;
|
btrfs_ioctl_balance_args args {};
|
||||||
memset_zero<btrfs_ioctl_balance_args>(&args);
|
|
||||||
const int ret = ioctl(root_fd(), BTRFS_IOC_BALANCE_PROGRESS, &args);
|
const int ret = ioctl(root_fd(), BTRFS_IOC_BALANCE_PROGRESS, &args);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
// Either can't get balance status or not running, exit either way
|
// Either can't get balance status or not running, exit either way
|
||||||
|
Loading…
x
Reference in New Issue
Block a user