Skip to content

Commit

Permalink
linux: libspl: getmntany: remove unused argument
Browse files Browse the repository at this point in the history
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Rich Ercolani <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes openzfs#12829
  • Loading branch information
nabijaczleweli authored and nicman23 committed Aug 22, 2022
1 parent 9bd4096 commit 5bd924b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/libspl/os/linux/getmntany.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ _sol_getmntent(FILE *fp, struct mnttab *mgetp)
}

static int
getextmntent_impl(FILE *fp, struct extmnttab *mp, int len)
getextmntent_impl(FILE *fp, struct extmnttab *mp)
{
int ret;
struct stat64 st;
Expand Down Expand Up @@ -137,7 +137,7 @@ getextmntent(const char *path, struct extmnttab *entry, struct stat64 *statbuf)
*/

match = 0;
while (getextmntent_impl(fp, entry, sizeof (*entry)) == 0) {
while (getextmntent_impl(fp, entry) == 0) {
if (makedev(entry->mnt_major, entry->mnt_minor) ==
statbuf->st_dev) {
match = 1;
Expand Down

0 comments on commit 5bd924b

Please sign in to comment.