Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
mdadm.7129
0002-Fix-some-type-comparison-problems.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-Fix-some-type-comparison-problems.patch of Package mdadm.7129
From 1d13b599607e48446273913ce594931ba53df9fd Mon Sep 17 00:00:00 2001 From: Xiao Ni <xni@redhat.com> Date: Sat, 6 Feb 2016 09:18:41 +0800 Subject: [PATCH 222/359] Fix some type comparison problems References: fate#320107, fate#320291 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> Signed-off-by: Coly Li <colyli@suse.de> --- Monitor.c | 2 +- util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Monitor.c b/Monitor.c index f19c2e5..6df80f9 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; diff --git a/util.c b/util.c index 970d484..6e7d3fb 100644 --- a/util.c +++ b/util.c @@ -1267,7 +1267,7 @@ struct supertype *guess_super_type(int fd, enum guess_types guess_type) */ struct superswitch *ss; struct supertype *st; - time_t besttime = 0; + unsigned int besttime = 0; int bestsuper = -1; int i; -- 2.16.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor