* screen.c (string_file_nuid): Fix a warning with uClibc.

(string_file_ngid): Likewise.
This commit is contained in:
Pavel Roskin 2002-09-24 23:00:01 +00:00
parent 9fb801ccd6
commit c20e6f66c1
2 changed files with 9 additions and 3 deletions

View File

@ -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>

View File

@ -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;
}