]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
mkfs.xfs: include full parser prototype in subopts definition
authorEric Sandeen <sandeen@redhat.com>
Tue, 9 Oct 2018 16:49:47 +0000 (11:49 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 9 Oct 2018 16:49:47 +0000 (11:49 -0500)
Fixes sparse warnings about this.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
mkfs/xfs_mkfs.c

index 092db00de0e904803b1beace771358f1083c57e6..77eb5f0fcfa9388d14a6def21dbc552aeff9cc0a 100644 (file)
@@ -1667,7 +1667,10 @@ sector_opts_parser(
 struct subopts {
        char            opt;
        struct opt_params *opts;
-       int             (*parser)();
+       int             (*parser)(struct opt_params     *opts,
+                                 int                   subopt,
+                                 char                  *value,
+                                 struct cli_params     *cli);
 } subopt_tab[] = {
        { 'b', &bopts, block_opts_parser },
        { 'd', &dopts, data_opts_parser },