[gnome-commander] No need to use GNOME_VFS_SIZE_FORMAT_STR anymore
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] No need to use GNOME_VFS_SIZE_FORMAT_STR anymore
- Date: Mon, 22 Feb 2021 21:50:29 +0000 (UTC)
commit 44726b4ebaff1c9b229a40d1494e2f29279ac165
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sat Feb 20 23:19:20 2021 +0100
No need to use GNOME_VFS_SIZE_FORMAT_STR anymore
Originally changed in commit b2b3dc1b8287335c1461e799006f5ed46c2008a8
src/utils.cc | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/utils.cc b/src/utils.cc
index cb214f35..afb8f6fb 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -324,7 +324,6 @@ const gchar *size2string (guint64 size, GnomeCmdSizeDispMode size_disp_mode)
static gchar buf0[64];
static gchar buf1[128];
-
switch (size_disp_mode)
{
case GNOME_CMD_SIZE_DISP_MODE_POWERED:
@@ -339,13 +338,13 @@ const gchar *size2string (guint64 size, GnomeCmdSizeDispMode size_disp_mode)
if (i)
g_snprintf (buf0, sizeof(buf0), "%.1f %s ", dsize, prefixes[i]);
else
- g_snprintf (buf0, sizeof(buf0), "%" GNOME_VFS_SIZE_FORMAT_STR " %s ", size, prefixes[0]);
+ g_snprintf (buf0, sizeof(buf0), "%lu %s ", size, prefixes[0]);
}
break;
case GNOME_CMD_SIZE_DISP_MODE_GROUPED:
{
- gint len = g_snprintf (buf0, sizeof(buf0), "%" GNOME_VFS_SIZE_FORMAT_STR " ", size);
+ gint len = g_snprintf (buf0, sizeof(buf0), "%lu ", size);
if (len < 5)
return buf0;
@@ -368,11 +367,11 @@ const gchar *size2string (guint64 size, GnomeCmdSizeDispMode size_disp_mode)
return buf1;
case GNOME_CMD_SIZE_DISP_MODE_LOCALE:
- g_snprintf (buf0, sizeof(buf0), "%'" GNOME_VFS_SIZE_FORMAT_STR " ", size);
+ g_snprintf (buf0, sizeof(buf0), "%'lu ", size);
break;
case GNOME_CMD_SIZE_DISP_MODE_PLAIN:
- g_snprintf (buf0, sizeof(buf0), "%" GNOME_VFS_SIZE_FORMAT_STR " ", size);
+ g_snprintf (buf0, sizeof(buf0), "%lu ", size);
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]