mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-20 22:12:58 +03:00
Compare commits
1 Commits
fc499535c4
...
fb62c0d351
Author | SHA1 | Date | |
---|---|---|---|
|
fb62c0d351 |
@ -303,11 +303,7 @@ time_t file_mod_time(const char *filename)
|
||||
bool file_mod_signature(const char *filename, file_mod_sig *ms)
|
||||
{
|
||||
struct stat st;
|
||||
if (stat(filename,&st)==-1)
|
||||
{
|
||||
FILE_MOD_RESET(ms);
|
||||
return false;
|
||||
}
|
||||
if (stat(filename,&st)==-1) return false;
|
||||
ms->mod_time=st.st_mtime;
|
||||
ms->size=st.st_size;
|
||||
return true;
|
||||
|
@ -317,11 +317,7 @@ time_t file_mod_time(const char *filename)
|
||||
bool file_mod_signature(const char *filename, file_mod_sig *ms)
|
||||
{
|
||||
struct stat st;
|
||||
if (stat(filename,&st)==-1)
|
||||
{
|
||||
FILE_MOD_RESET(ms);
|
||||
return false;
|
||||
}
|
||||
if (stat(filename,&st)==-1) return false;
|
||||
ms->mod_time=st.st_mtime;
|
||||
ms->size=st.st_size;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user