Whamcloud - gitweb
libsupport: fix function prototype for quota_write_inode()
authorTheodore Ts'o <tytso@mit.edu>
Wed, 31 May 2023 16:11:53 +0000 (12:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 31 May 2023 16:11:53 +0000 (12:11 -0400)
commit74571d9430da149fa46a0f7ef171920ebe9a7b8c
tree974ce807689058f67456e2c359f020968e3fc8ca
parent018ddcb29239fbd0a16a54e00613954e2d88b2b6
libsupport: fix function prototype for quota_write_inode()

Commit 2d2d799c7261 ("Clean up codes for adding new quota type")
changed the second paramter of quota_write_inode() from taking a
single quota type to taking a logical OR of (1 << quota_types).

The one thing this commit didn't change was the function prototype for
quota_write_inode() in the header file from an enum to an unsigned
int.  Most C compilers don't seem to mind, and omission is mostly
harmless.  However, mingw64 does issue a warning which gets promoted
to an error.

Fixes: 2d2d799c7261 ("Clean up codes for adding new quota type")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/support/quotaio.h