summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-30 11:10:16 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-30 11:10:16 +0000
commitabba9f4bab0336ae48be3764717f198d958e9bd0 (patch)
treeae783ba402cf477ca7f3c692d8bff6f069efe970
parentAdd missing prototypes. (diff)
downloadrtems-abba9f4bab0336ae48be3764717f198d958e9bd0.tar.bz2
Use "long"s for "time"s (16bit compliance).
-rw-r--r--testsuites/itrontests/itrontime01/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/itrontests/itrontime01/init.c b/testsuites/itrontests/itrontime01/init.c
index 7dbe5ac94f..262b569ace 100644
--- a/testsuites/itrontests/itrontime01/init.c
+++ b/testsuites/itrontests/itrontime01/init.c
@@ -33,11 +33,11 @@
int time_sec_epoch( void ) {
-int s_time,t_time,r_time;
+long s_time,t_time,r_time;
long m_sec;
t_time = time(NULL);
-s_time = (1985-1970)*365*24*60*60;
+s_time = (1985L-1970L)*365L*24L*60L*60L;
r_time = t_time - s_time;
m_sec = r_time*1000;