mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* info.c (info_show_info): Cast nlink_t to int to avoid a
warning if nlink_t is short. * screen.c (string_file_nlinks): Likewise.
This commit is contained in:
parent
b3d0da2a30
commit
5cecc135e1
@ -1,3 +1,9 @@
|
||||
2003-01-28 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* info.c (info_show_info): Cast nlink_t to int to avoid a
|
||||
warning if nlink_t is short.
|
||||
* screen.c (string_file_nlinks): Likewise.
|
||||
|
||||
2003-01-27 Arpi <arpi@mplayerhq.hu>
|
||||
|
||||
* key.c (is_idle): Correct maximal file descriptor and return
|
||||
|
@ -181,7 +181,7 @@ info_show_info (WInfo *info)
|
||||
|
||||
case 6:
|
||||
widget_move (&info->widget, 6, 3);
|
||||
printw (_("Links: %d"), buf.st_nlink);
|
||||
printw (_("Links: %d"), (int) buf.st_nlink);
|
||||
|
||||
case 5:
|
||||
widget_move (&info->widget, 5, 3);
|
||||
|
@ -317,9 +317,9 @@ string_file_perm_octal (file_entry *fe, int len)
|
||||
static const char *
|
||||
string_file_nlinks (file_entry *fe, int len)
|
||||
{
|
||||
static char buffer [BUF_TINY];
|
||||
static char buffer[BUF_TINY];
|
||||
|
||||
g_snprintf (buffer, sizeof (buffer), "%16d", fe->buf.st_nlink);
|
||||
g_snprintf (buffer, sizeof (buffer), "%16d", (int) fe->buf.st_nlink);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user