| @@ -1,22 +1,30 @@ | | | @@ -1,22 +1,30 @@ |
1 | $NetBSD: patch-ab,v 1.4 2009/11/05 19:50:54 reinoud Exp $ | | 1 | $NetBSD: patch-ab,v 1.5 2012/01/08 03:39:25 sbd Exp $ |
2 | | | 2 | |
3 | --- ROX-Filer/src/infobox.c.orig 2009-07-18 16:23:18.000000000 +0200 | | 3 | --- ROX-Filer/src/infobox.c.orig 2009-07-18 14:23:18.000000000 +0000 |
4 | +++ ROX-Filer/src/infobox.c | | 4 | +++ ROX-Filer/src/infobox.c |
5 | @@ -435,7 +435,7 @@ static void insert_size(DU *du, const ch | | 5 | @@ -26,6 +26,7 @@ |
| | | 6 | #include <string.h> |
| | | 7 | #include <sys/param.h> |
| | | 8 | #include <signal.h> |
| | | 9 | +#include <stdint.h> |
| | | 10 | #include <libxml/parser.h> |
| | | 11 | |
| | | 12 | #include <gtk/gtk.h> |
| | | 13 | @@ -435,7 +436,7 @@ static void insert_size(DU *du, const ch |
6 | cell = (size >= PRETTY_SIZE_LIMIT) | | 14 | cell = (size >= PRETTY_SIZE_LIMIT) |
7 | ? g_strdup_printf("%s (%" SIZE_FMT " %s)", | | 15 | ? g_strdup_printf("%s (%" SIZE_FMT " %s)", |
8 | format_size(size), | | 16 | format_size(size), |
9 | - size, _("bytes")) | | 17 | - size, _("bytes")) |
10 | + (intmax_t) size, _("bytes")) | | 18 | + (intmax_t) size, _("bytes")) |
11 | : g_strdup(format_size(size)); | | 19 | : g_strdup(format_size(size)); |
12 | | | 20 | |
13 | set_cell(du->store, du->path, cell); | | 21 | set_cell(du->store, du->path, cell); |
14 | @@ -576,7 +576,7 @@ static GtkWidget *make_details(const guc | | 22 | @@ -576,7 +577,7 @@ static GtkWidget *make_details(const guc |
15 | item->size >= PRETTY_SIZE_LIMIT | | 23 | item->size >= PRETTY_SIZE_LIMIT |
16 | ? g_strdup_printf("%s (%" SIZE_FMT " %s)", | | 24 | ? g_strdup_printf("%s (%" SIZE_FMT " %s)", |
17 | format_size(item->size), | | 25 | format_size(item->size), |
18 | - item->size, _("bytes")) | | 26 | - item->size, _("bytes")) |
19 | + (intmax_t) item->size, _("bytes")) | | 27 | + (intmax_t) item->size, _("bytes")) |
20 | : g_strdup(format_size(item->size))); | | 28 | : g_strdup(format_size(item->size))); |
21 | } | | 29 | } |
22 | else | | 30 | else |