From 192d0b1583c01fd783d46526e5be1f58eaf340c5 Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Mon, 16 Jul 2018 14:10:37 +0000 Subject: [PATCH] [Ada] adaint.c: minor code cleanup 2018-07-16 Arnaud Charlet gcc/ada/ * adaint.c (__gnat_set_file_time_name): Code clean up. From-SVN: r262709 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/adaint.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 163118f5027..975d807e960 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2018-07-16 Arnaud Charlet + + * adaint.c (__gnat_set_file_time_name): Code clean up. + 2018-07-16 Javier Miranda * inline.adb (Build_Body_To_Inline): Minor code reorganization that diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 552bd4404c3..2bd033a78d7 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -1475,7 +1475,7 @@ __gnat_set_file_time_name (char *name, time_t time_stamp) utimbuf.modtime = time_stamp; /* Set access time to now in local time. */ - t = time ((time_t) 0); + t = time (NULL); utimbuf.actime = mktime (localtime (&t)); utime (name, &utimbuf); -- 2.30.2