aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/time.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-12-21 13:58:51 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-12-21 13:58:51 +0000
commitf9396bbfe805c16944fec66ff0c6acdf87ba2ef2 (patch)
treec8a71a47d746009969a6d588529d28658626c9b2 /xen/common/time.c
parent015f6a2832c6304c9eccdbbe09ddb71efb2144d7 (diff)
downloadxen-f9396bbfe805c16944fec66ff0c6acdf87ba2ef2.tar.gz
xen-f9396bbfe805c16944fec66ff0c6acdf87ba2ef2.tar.bz2
xen-f9396bbfe805c16944fec66ff0c6acdf87ba2ef2.zip
Improve consistency of type-attribute usage (volatile/const).
From: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/time.c')
-rw-r--r--xen/common/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/common/time.c b/xen/common/time.c
index 65929d1c1f..9072fc8386 100644
--- a/xen/common/time.c
+++ b/xen/common/time.c
@@ -40,7 +40,7 @@ struct tm gmtime(unsigned long t)
struct tm tbuf;
long days, rem;
int y;
- unsigned short int *ip;
+ const unsigned short int *ip;
days = t / SECS_PER_DAY;
rem = t % SECS_PER_DAY;
@@ -66,7 +66,7 @@ struct tm gmtime(unsigned long t)
}
tbuf.tm_year = y - 1900;
tbuf.tm_yday = days;
- ip = (unsigned short int *)__mon_lengths[__isleap(y)];
+ ip = (const unsigned short int *)__mon_lengths[__isleap(y)];
for ( y = 0; days >= ip[y]; ++y )
days -= ip[y];
tbuf.tm_mon = y;