From dde0e3dbb7995a5b1ce98407d219a8af6ee478fa Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 22 Nov 2010 23:21:53 +0100 Subject: [PATCH] findmnt: use new tab parsing API Signed-off-by: Karel Zak --- misc-utils/findmnt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c index 4a83223f..c1b80dc8 100644 --- a/misc-utils/findmnt.c +++ b/misc-utils/findmnt.c @@ -319,7 +319,7 @@ leave: } /* error callback */ -static int parser_errcb(mnt_tab *tb, const char *filename, int line, int flag) +static int parser_errcb(mnt_tab *tb, const char *filename, int line) { warn(_("%s: parse error at line %d"), filename, line); return 0; @@ -339,9 +339,9 @@ static mnt_tab *parse_tabfile(const char *path) mnt_tab_set_parser_errcb(tb, parser_errcb); if (!strcmp(path, _PATH_MNTTAB)) - rc = mnt_tab_parse_fstab(tb); + rc = mnt_tab_parse_fstab(tb, NULL); else if (!strcmp(path, _PATH_MOUNTED)) - rc = mnt_tab_parse_mtab(tb); + rc = mnt_tab_parse_mtab(tb, NULL); else rc = mnt_tab_parse_file(tb, path); -- 2.39.5