* info.c (info_show_info): Casted st_mode to unsigned to avoid

compiler warning on Solaris 9 (st_mode is unsigned long there).
This commit is contained in:
Roland Illig 2005-02-12 22:28:09 +00:00
parent 7d1b02caad
commit 42d2ab10be
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,9 @@
2005-02-12 Jindrich Novy <jnovy@redhat.com>
2005-02-12 Roland Illig <roland.illig@gmx.de>
* info.c (info_show_info): Casted st_mode to unsigned to avoid
compiler warning on Solaris 9 (st_mode is unsigned long there).
2005-02-12 Jindrich Novy <jnovy@redhat.com>
* vfs.c (vfs_translate_url): Add support for smb://, sh://,
ssh:// and mc:// filesystem requests. Introduced separate table

View File

@ -181,7 +181,7 @@ info_show_info (struct WInfo *info)
case 5:
widget_move (&info->widget, 5, 3);
printw (const_cast(char *, _("Mode: %s (%04o)")),
string_perm (st.st_mode), st.st_mode & 07777);
string_perm (st.st_mode), (unsigned) st.st_mode & 07777);
case 4:
widget_move (&info->widget, 4, 3);