mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 05:16:18 +01:00
glocalfileinfo: remove non-use of GTimeVal
This commit is contained in:
parent
5dab4727ee
commit
d22681feb4
@ -119,18 +119,18 @@ static GHashTable *gid_cache = NULL;
|
|||||||
char *
|
char *
|
||||||
_g_local_file_info_create_etag (GLocalFileStat *statbuf)
|
_g_local_file_info_create_etag (GLocalFileStat *statbuf)
|
||||||
{
|
{
|
||||||
GTimeVal tv;
|
glong sec, usec;
|
||||||
|
|
||||||
tv.tv_sec = statbuf->st_mtime;
|
sec = statbuf->st_mtime;
|
||||||
#if defined (HAVE_STRUCT_STAT_ST_MTIMENSEC)
|
#if defined (HAVE_STRUCT_STAT_ST_MTIMENSEC)
|
||||||
tv.tv_usec = statbuf->st_mtimensec / 1000;
|
usec = statbuf->st_mtimensec / 1000;
|
||||||
#elif defined (HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC)
|
#elif defined (HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC)
|
||||||
tv.tv_usec = statbuf->st_mtim.tv_nsec / 1000;
|
usec = statbuf->st_mtim.tv_nsec / 1000;
|
||||||
#else
|
#else
|
||||||
tv.tv_usec = 0;
|
usec = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return g_strdup_printf ("%lu:%lu", tv.tv_sec, tv.tv_usec);
|
return g_strdup_printf ("%lu:%lu", sec, usec);
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
|
Loading…
Reference in New Issue
Block a user