summaryrefslogtreecommitdiffstats
path: root/Monitor.c
diff options
context:
space:
mode:
authorXiao Ni <xni@redhat.com>2016-02-06 02:18:41 +0100
committerJes Sorensen <Jes.Sorensen@redhat.com>2016-02-08 16:49:22 +0100
commit1d13b599607e48446273913ce594931ba53df9fd (patch)
tree29be686004bbbd18945a11846fb8d090b9749dd2 /Monitor.c
parentsuper1: Fix bblog_size accesses on big-ending machines. (diff)
downloadmdadm-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Monitor.c b/Monitor.c
index f19c2e58..6df80f94 100644
--- a/Monitor.c
+++ b/Monitor.c
@@ -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;