From d8d700ec734c0d027517ab03553dc878616e13a5 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 2 Jan 2010 21:14:35 +0100 Subject: thumbnails: Use g_stat in get_mtime. --- thumbnails.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'thumbnails.c') diff --git a/thumbnails.c b/thumbnails.c index 33b0573..19cc817 100644 --- a/thumbnails.c +++ b/thumbnails.c @@ -1,5 +1,4 @@ #include -#include #include #include @@ -23,10 +22,10 @@ inline static gchar *get_wall_thumb_name(const gchar *filepath) { } inline static time_t get_mtime(const gchar *filepath) { - struct utimbuf times; + struct stat sb; - if(g_utime(filepath, ×) == 0) { - return times.modtime; + if(g_stat(filepath, &sb) == 0) { + return sb.st_mtime; } else { return 0; } -- cgit v1.2.3