From: Karel Zak Date: Tue, 10 Aug 2010 13:26:59 +0000 (+0200) Subject: libmount: update tests X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d672fb2688bebf952344e263f0fe70653148298d;p=util-linux libmount: update tests Signed-off-by: Karel Zak --- diff --git a/shlibs/mount/src/optstr.c b/shlibs/mount/src/optstr.c index 3308a1a0..853f5f9b 100644 --- a/shlibs/mount/src/optstr.c +++ b/shlibs/mount/src/optstr.c @@ -491,7 +491,7 @@ int test_split(struct mtest *ts, int argc, char *argv[]) optstr = strdup(argv[1]); - if (mnt_split_optstr(optstr, &user, &vfs, &fs) == 0) { + if (mnt_split_optstr(optstr, &user, &vfs, &fs, 0, 0) == 0) { printf("user : %s\n", user); printf("vfs : %s\n", vfs); printf("fs : %s\n", fs); diff --git a/shlibs/mount/src/utils.c b/shlibs/mount/src/utils.c index 15785df2..423d942b 100644 --- a/shlibs/mount/src/utils.c +++ b/shlibs/mount/src/utils.c @@ -487,7 +487,7 @@ int test_mountpoint(struct mtest *ts, int argc, char *argv[]) int test_fsroot(struct mtest *ts, int argc, char *argv[]) { char *path = canonicalize_path(argv[1]), - *mnt = path ? mnt_get_fs_root(path) : NULL; + *mnt = path ? mnt_get_fs_root(path, NULL) : NULL; printf("%s: %s\n", argv[1], mnt ? : "unknown"); free(mnt);