[nautilus] Bug 586346 – Build failure on FreeBSD
- From: Andrew Walton <awalton src gnome org>
- To: svn-commits-list gnome org
- Subject: [nautilus] Bug 586346 – Build failure on FreeBSD
- Date: Fri, 19 Jun 2009 08:14:09 -0400 (EDT)
commit bcf5f921cda6f582230d3d0707f93172c3fa65e6
Author: A. Walton <awalton gnome org>
Date: Fri Jun 19 08:04:56 2009 -0400
Bug 586346 â?? Build failure on FreeBSD
Wasn't the wrong number of arguments, it was the wrong
type of argument (time_t, not long). So we add a cast
to make it more explicit to the compiler there.
libnautilus-private/nautilus-file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 0602dc6..0222867 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -3206,7 +3206,7 @@ nautilus_file_set_time_metadata (NautilusFile *file,
if (time != UNDEFINED_TIME) {
/* 2^64 turns out to be 20 characters */
- g_snprintf (time_str, 20, "%ld", time);
+ g_snprintf (time_str, 20, "%ld", (long int)time);
time_str[20] = '\0';
metadata = time_str;
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]