Whamcloud - gitweb
libquota: fix dict_uint_cmp()
authorNiu Yawei <yawei.niu@gmail.com>
Thu, 8 May 2014 02:38:53 +0000 (10:38 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 10 May 2014 02:11:25 +0000 (22:11 -0400)
commit4cf0b0fe443566940098308c2a9eb28fdb000166
tree5d0e79b9f2b681c2cbb81ada2887811f41f503be
parent4e2d9f7f4ed55e42ee42b39bb13ad7372b4f37a1
libquota: fix dict_uint_cmp()

dict_uint_cmp() returns an usigned int value in int type, which
could mess the dict key comparison when the difference of two
keys is greater than INT_MAX.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/quota/mkquota.c