aboutsummaryrefslogtreecommitdiff
path: root/fs/fs_struct.c
diff options
context:
space:
mode:
authorLABBE Corentin2015-11-19 11:50:08 +0100
committerAlexandre Belloni2016-01-11 20:19:56 +0100
commitf8947feb2c0196dafa7683f557eb8dddfb1ae167 (patch)
tree0d4c298450ccf52b02ad1b11b7436d1767462f0c /fs/fs_struct.c
parent3fc2c14acaf925768db37cf439c628bfa71dff09 (diff)
rtc: sunxi: fix signedness issues
The variable year must be set as unsigned since it is used with sunxi_rtc_data_year{.min|.max} and as parameter of is_leap_year() which wait for unsigned int. Only tm_year is not unsigned, but it is long. This patch fix also the format of printing of min/max. (must use %u since they are unsigned) The parameter to of sunxi_rtc_setaie() must be set to uint since callers give always uint data. Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com> Acked-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'fs/fs_struct.c')
0 files changed, 0 insertions, 0 deletions