From: Karel Zak Date: Mon, 22 Nov 2010 22:21:53 +0000 (+0100) Subject: findmnt: use new tab parsing API X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dde0e3dbb7995a5b1ce98407d219a8af6ee478fa;p=util-linux findmnt: use new tab parsing API Signed-off-by: Karel Zak --- 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);