Whamcloud - gitweb
libsupport: fix function prototype for parse_quota_opts
authorTheodore Ts'o <tytso@mit.edu>
Fri, 18 Mar 2016 20:11:53 +0000 (16:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 18 Mar 2016 20:11:53 +0000 (16:11 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/support/mkquota.c
lib/support/quotaio.h

index 0d9c4e8..c5dd140 100644 (file)
@@ -662,7 +662,7 @@ out:
        return err;
 }
 
-int parse_quota_opts(const char *opts, int (*func)(), void *data)
+int parse_quota_opts(const char *opts, int (*func)(char *, void *), void *data)
 {
        char    *buf, *token, *next, *p;
        int     len;
index 6b7f6fa..a8e6443 100644 (file)
@@ -233,7 +233,7 @@ int quota_file_exists(ext2_filsys fs, enum quota_type qtype);
 void quota_set_sb_inum(ext2_filsys fs, ext2_ino_t ino, enum quota_type qtype);
 errcode_t quota_compare_and_update(quota_ctx_t qctx, enum quota_type qtype,
                                   int *usage_inconsistent);
-int parse_quota_opts(const char *opts, int (*func)(void), void *data);
+int parse_quota_opts(const char *opts, int (*func)(char *, void *), void *data);
 
 /*
  * Return pointer to reserved inode field in superblock for given quota type.