1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-05-07 20:49:38 +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>
Dieser Commit ist enthalten in:
Zygo Blaxell
2021-11-16 01:28:34 -05:00
Ursprung 95347a08bb
Commit c698fd7211
+1 -2
Datei anzeigen
@@ -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<btrfs_ioctl_balance_args>(&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