diff options
Diffstat (limited to 'sys-utils/zramctl.c')
| -rw-r--r-- | sys-utils/zramctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys-utils/zramctl.c b/sys-utils/zramctl.c index 175ad98d51..e9eea4d1e2 100644 --- a/sys-utils/zramctl.c +++ b/sys-utils/zramctl.c @@ -308,7 +308,7 @@ static void zram_unlock(struct zram *z) { static void zram_reset_stat(struct zram *z) { if (z) { - strv_free(z->mm_stat); + ul_strv_free(z->mm_stat); z->mm_stat = NULL; z->mm_stat_probed = 0; } @@ -525,11 +525,11 @@ static int get_mm_stat(struct zram *z, if (!z->mm_stat && !z->mm_stat_probed) { char *str = NULL; if (ul_path_read_string(sysfs, &str, "mm_stat") > 0 && str) { - z->mm_stat = strv_split(str, " "); + z->mm_stat = ul_strv_split(str, " "); /* make sure kernel provides mm_stat as expected */ - if (strv_length(z->mm_stat) < ARRAY_SIZE(mm_stat_names)) { - strv_free(z->mm_stat); + if (ul_strv_length(z->mm_stat) < ARRAY_SIZE(mm_stat_names)) { + ul_strv_free(z->mm_stat); z->mm_stat = NULL; } } |
