mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
* screen.c (string_file_nuid): Fix a warning with uClibc.
(string_file_ngid): Likewise.
This commit is contained in:
parent
9fb801ccd6
commit
c20e6f66c1
@ -1,5 +1,8 @@
|
||||
2002-09-24 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* screen.c (string_file_nuid): Fix a warning with uClibc.
|
||||
(string_file_ngid): Likewise.
|
||||
|
||||
* mountlist.c: Restore sys/param.h before sys/mount.h - it's
|
||||
required on FreeBSD.
|
||||
Reported by Pavel Shirshov <pavelsh@mail.ru>
|
||||
|
@ -302,7 +302,8 @@ string_inode (file_entry *fe, int len)
|
||||
{
|
||||
static char buffer [10];
|
||||
|
||||
g_snprintf (buffer, sizeof (buffer), "%lu", (unsigned long) fe->buf.st_ino);
|
||||
g_snprintf (buffer, sizeof (buffer), "%lu",
|
||||
(unsigned long) fe->buf.st_ino);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
@ -312,7 +313,8 @@ string_file_nuid (file_entry *fe, int len)
|
||||
{
|
||||
static char buffer [10];
|
||||
|
||||
g_snprintf (buffer, sizeof (buffer), "%d", fe->buf.st_uid);
|
||||
g_snprintf (buffer, sizeof (buffer), "%lu",
|
||||
(unsigned long) fe->buf.st_uid);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
@ -322,7 +324,8 @@ string_file_ngid (file_entry *fe, int len)
|
||||
{
|
||||
static char buffer [10];
|
||||
|
||||
g_snprintf (buffer, sizeof (buffer), "%d", fe->buf.st_gid);
|
||||
g_snprintf (buffer, sizeof (buffer), "%lu",
|
||||
(unsigned long) fe->buf.st_gid);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user