diff options
author | Xiao Ni <xni@redhat.com> | 2016-02-06 02:18:41 +0100 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@redhat.com> | 2016-02-08 16:49:22 +0100 |
commit | 1d13b599607e48446273913ce594931ba53df9fd (patch) | |
tree | 29be686004bbbd18945a11846fb8d090b9749dd2 /Monitor.c | |
parent | super1: Fix bblog_size accesses on big-ending machines. (diff) | |
download | mdadm-1d13b599607e48446273913ce594931ba53df9fd.tar.xz mdadm-1d13b599607e48446273913ce594931ba53df9fd.zip |
Fix some type comparison problems
As 26714713cd2bad9e0bf7f4669f6cc4659ceaab6c said, 32 bit signed
timestamps will overflow in the year 2038. It already changed the
utime and ctime in struct mdu_array_info_s from int to unsigned
int. So we need to change the values that compared with them to
unsigned int too.
Signed-off-by : Xiao Ni <xni@redhat.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Diffstat (limited to 'Monitor.c')
-rw-r--r-- | Monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -33,7 +33,7 @@ struct state { char *devname; char devnm[32]; /* to sync with mdstat info */ - long utime; + unsigned int utime; int err; char *spare_group; int active, working, failed, spare, raid; |