From 2260302f989bb4eace31fc86f944535e1471e7b4 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Thu, 14 Jul 2022 09:24:27 +0200 Subject: [PATCH] src/file_sp3.c: rename variable time to file_time to avoid to shadow time() function --- src/file_sp3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/file_sp3.c b/src/file_sp3.c index c35388ed..458bf0af 100644 --- a/src/file_sp3.c +++ b/src/file_sp3.c @@ -132,13 +132,13 @@ static int header_check_sp3(const unsigned char *buffer, const unsigned int buff { const struct SP3FileInfo *h=(const struct SP3FileInfo *)buffer; /*@ assert \valid_read(h); */ - const time_t time=get_time_from_sp3(h); - if(time==0 || time==-1) + const time_t file_time=get_time_from_sp3(h); + if(file_time==0 || file_time==-1) return 0; reset_file_recovery(file_recovery_new); file_recovery_new->extension=file_hint_sp3.extension; file_recovery_new->min_filesize=10240; - file_recovery_new->time=time; + file_recovery_new->time=file_time; file_recovery_new->calculated_file_size=get_size_from_sp3(h); file_recovery_new->data_check=&data_check_size; file_recovery_new->file_check=&file_check_size;